Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- string phrase = "";
- uint repeatAmount = 0;
- Console.WriteLine("Please input a phrase you want to repeat : ");
- phrase = Console.ReadLine();
- Console.WriteLine("How much times you want to repeat : ");
- repeatAmount = Convert.ToUInt32(Console.ReadLine());
- while (repeatAmount > 0)
- {
- Console.WriteLine(phrase);
- --repeatAmount;
- }
- }
- }
Add Comment
Please, Sign In to add comment