Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Leson01
- {
- class Program
- {
- static void Main(string[] args)
- {
- string userMessages;
- string userMessagesStart;
- Console.Write("Видите сообщение:");
- userMessagesStart = Console.ReadLine();
- while (userMessagesStart != "exit")
- {
- Console.Write("Видите сообщение:");
- userMessages = Console.ReadLine();
- userMessagesStart = userMessages;
- }
- Console.WriteLine("Вы вышли из программы");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement