Advertisement
Rodunskiy

Untitled

Apr 9th, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. string userInput;
  2. int repeatsCount;
  3.  
  4. Console.Write("Введите сообщение:");
  5. userInput = Console.ReadLine();
  6. Console.Write("Введите кол-во повторений:");
  7. repeatsCount = Convert.ToInt32(Console.ReadLine());
  8.  
  9. for (int i = 0; i < repeatsCount; i++)
  10. {
  11.     Console.WriteLine(userInput);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement