kwest87

Untitled

Mar 19th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. [StartCode]
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApp3
  9. {
  10.     internal class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             string endRepeat;
  15.  
  16.             while (true)
  17.             {
  18.                 Console.Write("Для выхода напишите 'exit': ");
  19.                 endRepeat = Console.ReadLine();
  20.                 if (endRepeat == "exit")
  21.                 {
  22.                     break;
  23.                 }
  24.  
  25.  
  26.             }
  27.  
  28.         }
  29.     }
  30. }
  31. [EndCode]
Advertisement
Add Comment
Please, Sign In to add comment