0
How to write while program using if also
write a program to print no 1to 100 which is Divisible by 5 only
4 Answers
0
int n = 1;
while(n <= 100)
{
if(n % 5 == 0)
Console.WriteLine(n);
++n;
}
0
thanks erez
0
and we're I write readline after ++n;
0
if you want to stop the console from closing place it after the closing curly bracelets of the loop .