News Latest Technology, How to Fix Apple iPhone, contrast and brightness, Wireless Headphone, android KitKat stock firmware, XiaoMi Mi Pad, Tracfone Promo

Sabtu, 28 Desember 2013

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square - with more and more gadgets of new products, we should be literate technology because the product is made with the purpose to further facilitate our lives, on the blog News Latest Technology we will discuss about new and old products, we will explain the full pungsi, well now we will first clean up about C# Program to Print Triangle in Square we have collected a lot of data to make this article so you do not deleted information. 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");
}
}
}




quite so many infromation C# Program to Print Triangle in Square

hopefully the information we provide about C# Program to Print Triangle in Square we provide can be useful for your life especially in determining the gadget according to your requirement.

just smell you finished reading the article about C# Program to Print Triangle in Square if intend to share or just bookmark please use link https://memesmemosos.blogspot.com/2013/12/c-program-to-print-triangle-in-square.html to get more information about gadget please visit other pages on this blog that we guarantee super complete.

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

Related : C# Program to Print Triangle in Square

0 komentar:

Posting Komentar