Techno Max, PSP emulator, Sony Xperia Specifications, Motorola, Latest Setup, Latest Stock Firmware Flash File, Samsung Note, Avengers Box SPD

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - competition between products makes technology that continues to grow quickly, in blogs Techno Max we will discuss about speck new products from all brands of gadgets about hardware and soft ware are in use, now we will discuss first about C# Program to Print Triangle in Square we have collected lots of data to make this article, please see to finish:

Articles : C# Program to Print Triangle in Square
full Link : C# Program to Print Triangle in Square
Article Csharp, Article programs,

You can also see our article on:


C# Program to Print Triangle in Square

C# Program to Print Triangle in Square

Program Statement:
Write a program which display the following output on the screen.
####$####
###$#$###
##$###$##
#$#####$#
$#######$

Solution:
 class shape
{
int x, y;
public void sh()
{
Console.WriteLine();
for (x = 1; x <= 5; x++)
{
for (y = 1; y <= 5 - x; y++)
{
Console.Write("#");
}
Console.Write("$");
for (y = 2; y <= x * 2 - 1; y++)
{
Console.Write("#");
}
Console.Write("\b$");
for (y = 1; y <= 5 - x; y++)
{
Console.Write("#");
}
Console.WriteLine("\n");
}
}
}




enough already information C# Program to Print Triangle in Square

hopefully this information C# Program to Print Triangle in Square can benefit you in seeking more knowledge about gadgets from all brands that exist today.

you have finished reading the article C# Program to Print Triangle in Square if you intend to book book mark or share to more people please use link http://fcomax.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html and see other information in other page.

Tag : , ,
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : C# Program to Print Triangle in Square

0 komentar:

Post a Comment