Gadget Team, Samsung Galaxy, Karbonn Pro Firmware Flash, Android KitKat, stock firmware, Google Chrome, Plants vs Zombies, MOD APK

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - lately a lot of blogs that discuss about technology including this blog Gadget Team but we have experienced for years to present information about the gadget is accurate and latest, now we will discuss about C# Program to Print Triangle in Square please refer to the infomrasi we will give because we has collected a lot of data from trusted sources to create this article:

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 about C# Program to Print Triangle in Square can provide benefits in increasing your knowledge of technology.

you just finished reading C# Program to Print Triangle in Square if you intend to bookmark or share please use link https://bpcyclingteam.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html to get more information please visit other pages on this blog.

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

Related : C# Program to Print Triangle in Square

0 komentar:

Posting Komentar