CSharp - Write program to Choose the Number of Repetitions

Requirements

You will let the user specify the number of the repetitions.

Demo

using System;
class Program/*from   w  w w .j  a  va 2 s  .  c o  m*/
{
    static void Main(string[] args)
    {
        // Input 
        Console.Write("Enter number of repetitions: ");
        string input = Console.ReadLine();
        int howManyTimes = Convert.ToInt32(input);

        // Output 
        for (int count = 0; count < howManyTimes; count++)
        {
            Console.WriteLine("hi");
        }
    }
}

Result