Buy Android Smartphone, iPhone screen and removing, Winmax, Official Firmware Flash File, Octopus, NCK Dongle SPD, Z3X BOX Samsung Tool, Default, T-Mobile US, latest WhatsApp Messenger Version

Sabtu, 28 Desember 2013

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - technology continues to emerge and make life easier for us, but behind it also save difficulties for the layman about the technology .. in the blog Buy Android Smartphone we will discuss a lot of technological developments that appear at this time, well now we will discuss first about C# Program to Print Triangle in Square we have gathered a lot of information from various sources, 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 C# Program to Print Triangle in Square we have delivered

hopefully C# Program to Print Triangle in Square information can provide benefits for you in adding knowledge about gadgets,

you have finished reading article with title C# Program to Print Triangle in Square if you intend to bookmark or share please use link https://buyandroidsmartphone.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html hopefully useful for you

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

Related : C# Program to Print Triangle in Square

0 komentar:

Posting Komentar