Full Specs Techno, Samsung Odin, Latest Version Full Setup, How to reset password and username, Oppo R7 Plus Price and Features, IMEI Tool, samsung Galaxy Charging

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - we are grateful this blog Full Specs Techno has been a few years can always provide useful information for you, because our goal is to advance your life with the latest technology knowledge that will make your life easier, now we will discuss first about C# Program to Print Triangle in Square this information we build from various reliable sources that we collect specifically for you visitors of this blog, 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");
}
}
}




so much information about C# Program to Print Triangle in Square

hopefully the information we provide dengn title C# Program to Print Triangle in Square can provide benefits for you in determining the gadget that suits your needs.

you just read the article C# Program to Print Triangle in Square if you want to bookmark or share please use link https://fullcomicfrenzy.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html there is still a lot of information on this blog if you want to read it please visit other page, 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:

Post a Comment