Advertisement
maus234

Untitled

Aug 28th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 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.             string userMessagesStart;
  15.             Console.Write("Видите сообщение:");
  16.             userMessagesStart = Console.ReadLine();
  17.  
  18.             while (userMessagesStart != "exit")
  19.             {
  20.                 Console.Write("Видите сообщение:");
  21.                 userMessages = Console.ReadLine();
  22.                 userMessagesStart = userMessages;
  23.             }
  24.             Console.WriteLine("Вы вышли из программы");
  25.         }
  26.     }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement