You will write a program that displays "hi" ten times in a row.
You need to use loop.
You use the for construction to indicate repetition. Its general syntax looks like this:
for (initializer; loopCondition; iterator)
{
statement;
statement;
statement;
...
}
using System; class Program/* ww w . jav a 2 s.c om*/ { static void Main(string[] args) { // Output for (int count = 0; count < 10; count++) { Console.WriteLine("hi"); } } }