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 randooooom
- {
- class Program
- {
- static void CASE1()
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("ЗАЧЕЕЕЕЕЕЕМ");
- for (int i = 0; i < 5; i++) {
- Console.WriteLine("... ");
- Console.ReadKey();
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.WriteLine(" | NAND | NOR | XNOR |");
- Console.WriteLine(" 0 0 | 1 | 1 | 1 |");
- Console.WriteLine(" 0 1 | 1 | 0 | 0 |");
- Console.WriteLine(" 1 0 | 1 | 0 | 0 |");
- Console.WriteLine(" 1 1 | 0 | 0 | 1 |");
- }
- static void CASE2()
- {
- Console.WriteLine("Что, сразу к делу?");
- Console.WriteLine("Мне нравится твой настрой");
- Console.WriteLine("Nand -1; Nor - 2; Xnor -3");
- string e = Console.ReadLine();
- int r = Convert.ToInt32(e);
- switch(r)
- {
- case 1: //NAND
- Console.ForegroundColor = ConsoleColor.Yellow;
- Console.WriteLine("NAND");
- Console.WriteLine("Введите 2 числа через пробел");
- Console.WriteLine(" 0 или 1 ");
- var stroka1 = Console.ReadLine().Split(' ');
- if ( int.Parse(stroka1[0]) == 0 && int.Parse(stroka1[1]) == 0) Console.WriteLine(" 1");
- else if ( int.Parse(stroka1[0]) == 0 && int.Parse(stroka1[1]) == 1) Console.WriteLine(" 1");
- else if ( int.Parse(stroka1[0]) == 1 && int.Parse(stroka1[1]) == 0) Console.WriteLine(" 1");
- else if ( int.Parse(stroka1[0]) == 1 && int.Parse(stroka1[1]) == 1) Console.WriteLine(" 0");
- else
- {
- Console.WriteLine("ERROR ERROR ERROR");
- }
- break;
- case 2: //NOR
- Console.ForegroundColor = ConsoleColor.Blue;
- Console.WriteLine("NAND");
- Console.WriteLine("Введите 2 числа через пробел");
- Console.WriteLine(" 0 или 1 ");
- var stroka2 = Console.ReadLine().Split(' ');
- if ( int.Parse(stroka2[0]) == 0 && int.Parse(stroka2[1]) == 0) Console.WriteLine(" 1");
- else if ( int.Parse(stroka2[0]) == 0 && int.Parse(stroka2[1]) == 1) Console.WriteLine(" 0");
- else if ( int.Parse(stroka2[0]) == 1 && int.Parse(stroka2[1]) == 0) Console.WriteLine(" 0");
- else if ( int.Parse(stroka2[0]) == 1 && int.Parse(stroka2[1]) == 1) Console.WriteLine(" 0");
- else
- {
- Console.WriteLine("ERROR ERROR ERROR");
- }
- break;
- case 3: //XNOR
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("NAND");
- Console.WriteLine("Введите 2 числа через пробел");
- Console.WriteLine(" 0 или 1 ");
- var stroka3 = Console.ReadLine().Split(' ');
- if ( int.Parse(stroka3[0]) == 0 && int.Parse(stroka3[1]) == 0) Console.WriteLine(" 1");
- else if ( int.Parse(stroka3[0]) == 0 && int.Parse(stroka3[1]) == 1) Console.WriteLine(" 0");
- else if ( int.Parse(stroka3[0]) == 1 && int.Parse(stroka3[1]) == 0) Console.WriteLine(" 0");
- else if ( int.Parse(stroka3[0]) == 1 && int.Parse(stroka3[1]) == 1) Console.WriteLine(" 1");
- else
- {
- Console.WriteLine("ERROR ERROR ERROR");
- }
- Console.ReadKey();
- break;
- }
- }
- static void CASE3()
- {
- Console.WriteLine("Ха");
- Console.ReadKey();
- Console.WriteLine("Ха-ха");
- Console.ReadKey();
- Console.WriteLine("Ха-ха-ха");
- Console.ReadKey();
- Console.WriteLine("Ха-ха-ха-ха");
- Console.ReadKey();
- for (int i = 0; i < 1000; i++)
- {
- for (int j = 0; j < 20; j++) {
- Console.Write(" LOOP ");}
- }
- Console.WriteLine();
- Console.ReadKey();
- Console.WriteLine("Введите K");
- Console.ForegroundColor = ConsoleColor.Red;
- var k = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Введите O");
- Console.ForegroundColor = ConsoleColor.DarkYellow;
- var o = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Введите J");
- Console.ForegroundColor = ConsoleColor.Yellow;
- var tj = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Введите Z");
- Console.ForegroundColor = ConsoleColor.Green;
- var z = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Введите G");
- Console.ForegroundColor = ConsoleColor.Blue;
- var g = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Введите S");
- Console.ForegroundColor = ConsoleColor.DarkBlue;
- var s = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Введите F");
- Console.ForegroundColor = ConsoleColor.Magenta;
- var f = Console.ReadLine().Split();
- Console.ForegroundColor = ConsoleColor.White;
- Console.ReadKey();
- Console.WriteLine("Ура, мы на радуге");
- Console.ReadKey();
- Console.WriteLine("Пока");
- Console.ReadKey();
- }
- static void Main(string[] args)
- {
- Console.ReadKey();
- Console.WriteLine("Lj,htqibq dtxthjxtr");
- Console.ReadKey();
- Console.WriteLine("...");
- Console.ReadKey();
- Console.WriteLine("кхе кхе");
- Console.ReadKey();
- Console.WriteLine("Длобрейший вечерочек");
- Console.ReadKey();
- Console.WriteLine("А мы тут логическими операциями занимаемся");
- Console.ReadKey();
- Console.WriteLine("Ты тоже хочешь?");
- Console.WriteLine("1 - Да");
- Console.WriteLine("2 - нет");
- Console.WriteLine("3 - не знаю");
- string one = Console.ReadLine();
- int case1 = Convert.ToInt32(one);
- switch(case1){
- case 1:
- Console.WriteLine("А на сколько вычислений тебя, введи число");
- int it = int.Parse(Console.ReadLine());
- if (it <= 2)
- {
- Console.WriteLine(":////////////");
- Console.ReadKey();
- }
- if (it > 2 && it<= 7)
- {
- Console.WriteLine("good");
- Console.ReadKey();
- }
- if (it > 8)
- {
- Console.WriteLine("oooooooooooooooooohhhhhhhhhhhhhh myyyyyyyyyyyyyyyyyyyyyyyyyyyyy");
- Console.ReadKey();
- }
- Console.WriteLine("so let's start ");
- for (int i = 0; i < it; i++)
- { Console.WriteLine("Хочешь таблицу истинности? жду 1 ");
- Console.WriteLine("Хочешь сразу считать, жми 2 ");
- string q = Console.ReadLine();
- int w = Convert.ToInt32(q);
- switch(w)
- {
- case 1:
- CASE1();
- break;
- case 2:
- CASE2();
- break;
- }
- }
- break;
- case 2:
- Console.WriteLine("...");
- Console.ReadKey();
- Console.WriteLine("Скучный ты");
- Console.ReadKey();
- Console.WriteLine(":(((((((((");
- Console.ReadKey();
- Console.WriteLine("А я старалась и делала");
- Console.ReadKey();
- Console.WriteLine("Нажми хоть кнопочку что ли");
- break;
- case 3:
- CASE3();
- break;
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement