Advertisement
LeRoY_Go

Untitled

Jan 18th, 2022
618
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace C_Sharp_Junior
  4. {
  5.     class Program
  6.  
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             Console.Write("Введите сообщение: ");
  11.             string userInput = Console.ReadLine();
  12.             Console.Write("Количество повторений: ");
  13.             int numberCycleRepetitions = Convert.ToInt32(Console.ReadLine());
  14.             for (int i = 0; i < numberCycleRepetitions; i++)
  15.             {
  16.                 Console.WriteLine(userInput);
  17.             }
  18.             Console.ReadKey();
  19.         }
  20.     }
  21. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement