C# Program to Print half Diamond shapes using numbers - welcome to our blog that presents a very complete information is
Tech Phone ok now we will discuss the information you are seeking, may I guess if you are looking for information on C# Program to Print half Diamond shapes using numbers if properly come please continue reading until the end, we also provide other information, do not forget to get around:
informations :
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 C# Program to Print half Diamond shapes using numbers already been discussed
A few information about the C# Program to Print half Diamond shapes using numbers, hopefully can provide benefits to all of you.
You're reading an article
C# Program to Print half Diamond shapes using numbers and this article has a link to
https://mastispotgroup.blogspot.com/2013/12/c-program-to-print-half-diamond-shapes.html to revel book mark. Hopefully this article
could be useful, do not forget to look for information on obtaining the phone tech blog.
Tag :
Csharp,
programs,
0 komentar:
Posting Komentar