C# Program to display the different series output on the screen - 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 display the different series output on the screen 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 display the different series output on the screen
C# Program to display the different series output on the screen
Program Statement:Write a program which display the following output on the screen.
1 2 3 4 5
1 4 9 16 25
1 8 27 64 125
Solution:
static void Main(string[] args)
{
for (int i = 1; i <= 5; i++)
Console.Write(i+" ");
Console.WriteLine();
for (int i = 1; i <= 5; i++)
Console.Write(i * i+" ");
Console.WriteLine();
for (int i = 1; i <= 5; i++)
Console.Write(i * i * i+" ");
Console.ReadLine();
}
Articles about C# Program to display the different series output on the screen finished discussed
We think it is enough information about C# Program to display the different series output on the screen, hopefully the information we give can give benefit for you,
If you feel the information C# Program to display the different series output on the screen that we provide can provide benefits for others please share with link https://darellsfinancialcorner.blogspot.com/2013/12/c-program-to-display-different-series.html thank you for visiting our blog page and do not forget to visit other
0 komentar:
Posting Komentar