Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSharpLight
- {
- public static class Program
- {
- public static void Main()
- {
- Console.WriteLine("Введите сообщение");
- string message = Console.ReadLine();
- while (!message.Contains("exit"))
- {
- if (message != "exit")
- {
- Console.Write("Введите количество повторов сообщения: ");
- int repeat = int.Parse(Console.ReadLine());
- for (int i = 0; i < repeat; i++)
- {
- Console.WriteLine(message);
- }
- Console.WriteLine("Повторить операцию или exit для выхода");
- message = Console.ReadLine();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment