Advertisement
GPbl3YH

CSLight #7

Jan 26th, 2021
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 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 CSLight
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Введите сообщение:");
  14.             string message = Console.ReadLine();
  15.             Console.WriteLine("Введите Количество повторений:");
  16.             int numberOfIterations = Convert.ToInt32(Console.ReadLine());
  17.  
  18.             for (int i = 0; i < numberOfIterations; i++)
  19.             {
  20.                 Console.WriteLine(message);
  21.             }
  22.  
  23.             Console.ReadKey();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement