Computer Science, asked by mukechiwar, 7 months ago

Write a program that computes and display the n! for any n in the range1..100 using C#

Answers

Answered by itzjaanu70
1

《《《《 Answer》》》》

Write a program in C# Sharp to display the first 10 natural numbers.

Pictorial Presentation:

C# Sharp Exercises: Display first 10 natural numbers

Sample Solution:

C# Sharp Code:

using System;

public class Exercise1

{

public static void Main()

{

int i;

Console.Write("\n\n");

Console.Write("Display the first 10 natural numbers:\n");

Console.Write("---------------------------------------");

Console.Write("\n\n");

Console.WriteLine("The first 10 natural number are:");

for (i=1;i<=10;i++)

{

Console.Write("{0} ",i);

}

Console.Write("\n\n");

}

}

Similar questions