Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSLight1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string message;
- int countOfRepeats;
- Console.Write("Input message: ");
- message = Console.ReadLine();
- Console.Write("Input number of repeats: ");
- countOfRepeats = Convert.ToInt32(Console.ReadLine());
- while(countOfRepeats > 0)
- {
- Console.WriteLine(message);
- countOfRepeats--;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment