Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Введите сообщение, которое будет повторяться:");
- string repeatMassage = Console.ReadLine();
- Console.WriteLine("Введите количество повторений:");
- int repeatCounter = Convert.ToInt32(Console.ReadLine());
- for (int i = 0; i < repeatCounter; i++)
- {
- Console.WriteLine(repeatMassage);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement