Gadget Corner, Huawei stock ROMs, Miracle Box, How To Install, Clone Firmware, Android Latest Version, HTC Firmware Flash File, and more information about gadgets for you

C# Program to Print half Diamond shapes using numbers

C# Program to Print half Diamond shapes using numbers - Welcome to the blog Gadget Corner we provide a lot of latest gadget information that must be very loss for you to miss, now we will discuss first about C# Program to Print half Diamond shapes using numbers we have collected a lot of information to make this article complete for you, Ok please read::

You can also see our article on:


C# Program to Print half Diamond shapes using numbers

C# Program to Print half Diamond shapes using numbers 1 to 10

Program Statement:
Write a program to produce the following output:
             1
          2   3
        4   5   6
       7  8  9  10

Solution:
 static void Main(string[] args)
{
int i,j,k=1;
for (i = 1; i <= 4; i++)
{
for (j = 4; j >= 1; j--)
{
if (j > i)
Console.Write(" ");
else
Console.Write(" " + k++ + " ");
}
Console.WriteLine();
Console.WriteLine();
}
Console.ReadLine();
}



Articles about C# Program to Print half Diamond shapes using numbers finished discussed

We think it is enough information about C# Program to Print half Diamond shapes using numbers, hopefully the information we give can give benefit for you,

If you feel the information C# Program to Print half Diamond shapes using numbers that we provide can provide benefits for others please share with link https://darellsfinancialcorner.blogspot.com/2013/12/c-program-to-print-half-diamond-shapes.html thank you for visiting our blog page and do not forget to visit other

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

Related : C# Program to Print half Diamond shapes using numbers

0 komentar:

Posting Komentar