C# Program to display the different series output on the screen
Program Statement:
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:
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();
}
For all topics related to Uttarakhand visit
ReplyDeleteUttarakhand and Tourist spots of Uttarakhand
Tourist places in uttarakhand and Places to visit in uttarakhand
Lansdowne and lansdowne tourist places
Uttarakhand and Uttarakhand Jobs, Blogs, Articles and Tourist spots of Uttarakhand
Uttarakhand Govt Jobs 2020 and Uttarakhand Jobs
Dehradun Jobs and Dehradun Govt Jobs