In: Computer Science
Please code C#
for(int count = 8; count > 0; count--)
{
Console.WriteLine(count);
}
The exact part will be :
int count = 8;
while( count>0)
{
Console.WriteLine(count);
count--;
}
And the whole code will be:
using System;
class HelloWorld {
static void Main() {
int count = 8;
while( count>0)
{
Console.WriteLine(count);
count--;
}
}
}
Output: