Advertisement
Lexvolk

Untitled

Mar 30th, 2023
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CJunior
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("Введите кол-во повторов: ");
  14.             int repeatsCount = int.Parse(Console.ReadLine());
  15.             Console.Write("Введите сообщение для вывода: ");
  16.             string message = Console.ReadLine();
  17.  
  18.             Console.WriteLine("Выводим сообщение:");
  19.             for (int i = 0; i < repeatsCount; i++)
  20.                 Console.WriteLine(message);
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement