C# Program to Print half Diamond shapes using numbers - we say welcome to the blog
Tecno Android Phones we provide a lot of latest gadget information that must be very dear 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 to complete for you, Please read:
Articles :
C# Program to Print half Diamond shapes using numbers
full Link :
C# Program to Print half Diamond shapes using numbers
Article Csharp,
Article programs,
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 10Program 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://southernmatron.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 pages.
Tag :
Csharp,
programs,
0 komentar:
Post a Comment