Advertisement
TwinFrame

Clight_08_Cycles

Mar 16th, 2023
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. internal class Program
  2. {
  3.     private static void Main(string[] args)
  4.     {
  5.         string userInput;
  6.         int repetitionsCount;
  7.  
  8.         Console.Write("Введите строку: ");
  9.         userInput = Console.ReadLine();
  10.  
  11.         Console.Write("Введите количество повторений: ");
  12.         repetitionsCount = Int32.Parse(Console.ReadLine());
  13.  
  14.         for (int i = 0; i < repetitionsCount; i++)
  15.         {
  16.             Console.WriteLine(userInput);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement