Advertisement
Rodunskiy

Untitled

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