Advertisement
Sukaburjuaznaya

Polina's blizzard adventure

Oct 17th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 10.26 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 randooooom
  8. {
  9.     class Program
  10.     {
  11.         static void CASE1()
  12.             {
  13.                     Console.ForegroundColor = ConsoleColor.Red;
  14.                     Console.WriteLine("ЗАЧЕЕЕЕЕЕЕМ");
  15.                     for (int i = 0; i < 5; i++) {
  16.                         Console.WriteLine("... ");
  17.                         Console.ReadKey();
  18.                     }
  19.                     Console.ForegroundColor = ConsoleColor.White;
  20.                     Console.WriteLine();
  21.                     Console.WriteLine("      | NAND | NOR | XNOR |");
  22.                     Console.WriteLine("  0 0 |   1  |  1  |  1   |");
  23.                     Console.WriteLine("  0 1 |   1  |  0  |  0   |");
  24.                     Console.WriteLine("  1 0 |   1  |  0  |  0   |");
  25.                     Console.WriteLine("  1 1 |   0  |  0  |  1   |");
  26.                
  27.         }
  28.  
  29.         static void CASE2()
  30.         {
  31.                     Console.WriteLine("Что, сразу к делу?");
  32.                     Console.WriteLine("Мне нравится твой настрой");
  33.                     Console.WriteLine("Nand -1; Nor - 2; Xnor -3");
  34.                     string e = Console.ReadLine();
  35.                     int r = Convert.ToInt32(e);            
  36.                         switch(r)
  37.                         {
  38.                             case 1: //NAND
  39.                     Console.ForegroundColor = ConsoleColor.Yellow;          
  40.                     Console.WriteLine("NAND");  
  41.                     Console.WriteLine("Введите 2 числа через пробел");
  42.                     Console.WriteLine(" 0 или 1 ");
  43.                     var stroka1 = Console.ReadLine().Split(' ');
  44.                     if ( int.Parse(stroka1[0]) == 0 && int.Parse(stroka1[1]) == 0) Console.WriteLine(" 1");
  45.                     else if ( int.Parse(stroka1[0]) == 0 && int.Parse(stroka1[1]) == 1) Console.WriteLine(" 1");
  46.                     else if ( int.Parse(stroka1[0]) == 1 && int.Parse(stroka1[1]) == 0) Console.WriteLine(" 1");
  47.                     else if ( int.Parse(stroka1[0]) == 1 && int.Parse(stroka1[1]) == 1) Console.WriteLine(" 0");
  48.                     else
  49.                     {
  50.                          Console.WriteLine("ERROR ERROR ERROR");
  51.                     }
  52.                                 break;
  53.                        
  54.                         case 2: //NOR
  55.                     Console.ForegroundColor = ConsoleColor.Blue;        
  56.                     Console.WriteLine("NAND");  
  57.                     Console.WriteLine("Введите 2 числа через пробел");
  58.                     Console.WriteLine(" 0 или 1 ");
  59.                     var stroka2 = Console.ReadLine().Split(' ');
  60.                     if ( int.Parse(stroka2[0]) == 0 && int.Parse(stroka2[1]) == 0) Console.WriteLine(" 1");
  61.                     else if ( int.Parse(stroka2[0]) == 0 && int.Parse(stroka2[1]) == 1) Console.WriteLine(" 0");
  62.                     else if ( int.Parse(stroka2[0]) == 1 && int.Parse(stroka2[1]) == 0) Console.WriteLine(" 0");
  63.                     else if ( int.Parse(stroka2[0]) == 1 && int.Parse(stroka2[1]) == 1) Console.WriteLine(" 0");
  64.                     else
  65.                     {
  66.                         Console.WriteLine("ERROR ERROR ERROR");
  67.                     }
  68.                                 break;
  69.                        
  70.                          case 3: //XNOR
  71.                     Console.ForegroundColor = ConsoleColor.Green;        
  72.                     Console.WriteLine("NAND");  
  73.                     Console.WriteLine("Введите 2 числа через пробел");
  74.                     Console.WriteLine(" 0 или 1 ");
  75.                     var stroka3 = Console.ReadLine().Split(' ');
  76.                     if ( int.Parse(stroka3[0]) == 0 && int.Parse(stroka3[1]) == 0) Console.WriteLine(" 1");
  77.                     else if ( int.Parse(stroka3[0]) == 0 && int.Parse(stroka3[1]) == 1) Console.WriteLine(" 0");
  78.                     else if ( int.Parse(stroka3[0]) == 1 && int.Parse(stroka3[1]) == 0) Console.WriteLine(" 0");
  79.                     else if ( int.Parse(stroka3[0]) == 1 && int.Parse(stroka3[1]) == 1) Console.WriteLine(" 1");
  80.                     else
  81.                     {
  82.                         Console.WriteLine("ERROR ERROR ERROR");
  83.                     }
  84.                     Console.ReadKey();
  85.                                 break;
  86.                        
  87.                         }
  88.  
  89.                 }
  90.        
  91.          static void CASE3()
  92.         {
  93.             Console.WriteLine("Ха");
  94.             Console.ReadKey();
  95.             Console.WriteLine("Ха-ха");
  96.             Console.ReadKey();
  97.             Console.WriteLine("Ха-ха-ха");
  98.             Console.ReadKey();
  99.             Console.WriteLine("Ха-ха-ха-ха");
  100.             Console.ReadKey();
  101.             for (int i = 0; i < 1000; i++)
  102.             {
  103.             for (int j = 0; j < 20; j++) {
  104.                 Console.Write("  LOOP  ");}
  105.             }
  106.             Console.WriteLine();
  107.                 Console.ReadKey();
  108.                 Console.WriteLine("Введите K");
  109.                 Console.ForegroundColor = ConsoleColor.Red;
  110.                 var k = Console.ReadLine().Split();
  111.                 Console.ForegroundColor = ConsoleColor.White;
  112.                 Console.WriteLine("Введите O");
  113.                 Console.ForegroundColor = ConsoleColor.DarkYellow;
  114.                 var o = Console.ReadLine().Split();
  115.                 Console.ForegroundColor = ConsoleColor.White;
  116.                 Console.WriteLine("Введите J");
  117.                 Console.ForegroundColor = ConsoleColor.Yellow;
  118.                 var tj = Console.ReadLine().Split();
  119.                 Console.ForegroundColor = ConsoleColor.White;
  120.                 Console.WriteLine("Введите Z");
  121.                 Console.ForegroundColor = ConsoleColor.Green;
  122.                 var z = Console.ReadLine().Split();
  123.                 Console.ForegroundColor = ConsoleColor.White;
  124.                 Console.WriteLine("Введите G");
  125.                 Console.ForegroundColor = ConsoleColor.Blue;
  126.                 var g = Console.ReadLine().Split();
  127.                 Console.ForegroundColor = ConsoleColor.White;
  128.                 Console.WriteLine("Введите S");
  129.                 Console.ForegroundColor = ConsoleColor.DarkBlue;
  130.                 var s = Console.ReadLine().Split();
  131.                 Console.ForegroundColor = ConsoleColor.White;
  132.                 Console.WriteLine("Введите F");
  133.                 Console.ForegroundColor = ConsoleColor.Magenta;
  134.                 var f = Console.ReadLine().Split();
  135.                 Console.ForegroundColor = ConsoleColor.White;
  136.                 Console.ReadKey();
  137.                 Console.WriteLine("Ура, мы на радуге");
  138.                 Console.ReadKey();
  139.                 Console.WriteLine("Пока");
  140.                 Console.ReadKey();
  141.             }
  142.      
  143.         static void Main(string[] args)
  144.         {
  145.             Console.ReadKey();
  146.             Console.WriteLine("Lj,htqibq dtxthjxtr");
  147.             Console.ReadKey();
  148.             Console.WriteLine("...");
  149.             Console.ReadKey();
  150.             Console.WriteLine("кхе кхе");
  151.             Console.ReadKey();
  152.             Console.WriteLine("Длобрейший вечерочек");
  153.             Console.ReadKey();
  154.             Console.WriteLine("А мы тут логическими операциями занимаемся");
  155.             Console.ReadKey();
  156.             Console.WriteLine("Ты тоже хочешь?");
  157.             Console.WriteLine("1 - Да");
  158.             Console.WriteLine("2 - нет");
  159.             Console.WriteLine("3 - не знаю");
  160.              string one = Console.ReadLine();
  161.             int case1 = Convert.ToInt32(one);
  162.             switch(case1){
  163.                 case 1:
  164.                     Console.WriteLine("А на сколько вычислений тебя, введи число");
  165.                     int it = int.Parse(Console.ReadLine());
  166.                     if (it <= 2)
  167.                     {
  168.                         Console.WriteLine(":////////////");
  169.                         Console.ReadKey();
  170.                     }
  171.                     if (it > 2 && it<= 7)
  172.                     {
  173.                         Console.WriteLine("good");
  174.                         Console.ReadKey();
  175.                     }
  176.                     if (it > 8)
  177.                     {
  178.                      Console.WriteLine("oooooooooooooooooohhhhhhhhhhhhhh  myyyyyyyyyyyyyyyyyyyyyyyyyyyyy");
  179.                      Console.ReadKey();
  180.                     }
  181.                    
  182.                      Console.WriteLine("so let's start ");
  183.                      for (int i = 0; i < it; i++)
  184.                      {  Console.WriteLine("Хочешь таблицу истинности? жду 1 ");
  185.                         Console.WriteLine("Хочешь сразу считать, жми 2 ");
  186.                         string q = Console.ReadLine();
  187.                         int w = Convert.ToInt32(q);
  188.                         switch(w)
  189.                         {
  190.                             case 1:
  191.                                 CASE1();
  192.                                 break;
  193.                             case 2:
  194.                                  CASE2();  
  195.                                 break;
  196.                          }  
  197.                     }
  198.                    
  199.                    break;
  200.                    
  201.                 case 2:
  202.                     Console.WriteLine("...");
  203.                     Console.ReadKey();
  204.                     Console.WriteLine("Скучный ты");
  205.                     Console.ReadKey();
  206.                     Console.WriteLine(":(((((((((");
  207.                     Console.ReadKey();
  208.                     Console.WriteLine("А я старалась и делала");
  209.                     Console.ReadKey();
  210.                     Console.WriteLine("Нажми хоть кнопочку что ли");
  211.                     break;
  212.                 case 3:
  213.                     CASE3();
  214.                     break;
  215.             }
  216.  
  217.             Console.ReadKey();
  218.          
  219.            
  220.          
  221.  
  222.         }
  223.     }
  224. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement