King Gadget, Nokia, Sony Xperia Z, Speaker Audio Sound, Latest Update Flash File, USB Not charging problem

Sabtu, 28 Desember 2013

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - welcome friends, how are you today? ... hopefully healthy ... starting today blog King Gadget will discuss trus information about the latest gadgets and old ones, ok now we will discuss first C# Program to Print Triangle in Square this information we collect from various reliable sources so that you will get complete and correct information, please read.

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




so much information C# Program to Print Triangle in Square

hopefully the information C# Program to Print Triangle in Square that we convey could be useful for you in searching the latest gadget information on google

you just read the article with title C# Program to Print Triangle in Square you can bookmark for easy return visit or you can also share so this article can be more useful for many people by using link https://shwesetharrking.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html umpteen 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