You will let the user specify the number of the repetitions.
using System; class Program/*from www .j av a2s .c om*/ { 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"); } } }