16
1
using System;
2
3
public class WhileLoopProgram
4
{
5
public static void Main()
6
{
7
int i;
8
Console.WriteLine("How many times you want to print i?");
9
i = Convert.ToInt32(Console.ReadLine());
10
while(i > 0)
11
{
12
Console.WriteLine("Value of i="+i);
13
i--;
14
}
15
}
16
}
Cached Result