Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HW
- {
- class Program
- {
- static void Main(string[] args)
- {
- string number;
- int name;
- int name1;
- string userName = "w" ;
- string nameUser;
- string pass;
- string pass_1 = "qwerty";
- bool t;
- bool passAccepted;
- while (t = true)
- {
- name =Convert.ToInt32( Console.ReadLine());
- if(name == 1)
- {
- t = true;
- Console.WriteLine("Напиши имя");
- userName = Console.ReadLine();
- passAccepted = true;
- name1 = Convert.ToInt32(Console.ReadLine());
- }
- else if(name == 2)
- {
- t = true;
- Console.BackgroundColor = ConsoleColor.Cyan;
- Console.Clear();
- Console.WriteLine("23");
- }
- else if (name == 3)
- {
- t = true;
- Console.WriteLine("Введите пароль");
- pass = Console.ReadLine();
- if(pass == pass_1)
- {
- passAccepted = true;
- }
- }
- if (name == 4)
- {
- t = true;
- if (passAccepted = true)
- {
- Console.WriteLine(userName);
- }
- else
- Console.WriteLine("dfjhsdjf");
- }
- if (t = false)
- break;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment