Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace C_Sharp_Junior
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите сообщение: ");
- string userInput = Console.ReadLine();
- Console.Write("Количество повторений: ");
- int numberCycleRepetitions = Convert.ToInt32(Console.ReadLine());
- for (int i = 0; i < numberCycleRepetitions; i++)
- {
- Console.WriteLine(userInput);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement