Techno Specs Gadget, Samsung Galaxy, New IMEI, Octopus Box Samsung, Android Jelly Bean, Ulefone Tiger, Chinese Miracle

Sabtu, 28 Desember 2013

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - are you surfing on google and finding this blog Techno Specs Gadget ?.. if yes, congratulations you will get updated information about C# Program to Print Triangle in Square we have collected a lot of information from various reliable sources to make this article, so make sure you read through to finish, please see.

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");
}
}
}




information about C# Program to Print Triangle in Square has been completed in the discussion

hopefully the information C# Program to Print Triangle in Square that we provide can provide benefits for you in finding the information you need

you have finished reading the article about C# Program to Print Triangle in Square if you want to bookmark or also want to share this information to many people can use the link http://belialslut.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html ok so and thank you.

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

Related : C# Program to Print Triangle in Square

0 komentar:

Posting Komentar