maus234

Untitled

Aug 27th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 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 Leson01
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string userMessages;
  14.             int numberOfRepetitions;
  15.            
  16.             Console.Write("Здраствуйте! видите сообщения коротие хотите для повторения:");
  17.             userMessages = Console.ReadLine();
  18.             Console.Write("Сколько вы хотите что бы сообщения повторилось:");
  19.             numberOfRepetitions = Convert.ToInt32(Console.ReadLine());
  20.  
  21.             for(int i = 0; i < numberOfRepetitions;i++)
  22.             {
  23.                 Console.WriteLine(userMessages);
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment