Advertisement
nahidjamalli

Lesson #1

Feb 14th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.92 KB | None | 0 0
  1. namespace MyNamespace
  2. {
  3.     class MyClass
  4.     {
  5.         static void Main()
  6.         {
  7.             /*
  8.             // ! operator using
  9.             if (!true)
  10.             {
  11.                 System.Console.WriteLine("Vagif");
  12.             }
  13.  
  14.             if (!false)
  15.             {
  16.                 System.Console.WriteLine("Elgiz");
  17.             }
  18.  
  19.             // == operator using
  20.             if (true == true)
  21.             {
  22.                 System.Console.WriteLine("Vagif");
  23.             }
  24.  
  25.             if (false == false)
  26.             {
  27.                 System.Console.WriteLine("Elgiz");
  28.             }
  29.             */
  30.  
  31.             /*
  32.             // != operator using
  33.             if (true != true)
  34.             {
  35.                 System.Console.WriteLine("Vagif");
  36.             }
  37.  
  38.             if (false != false)
  39.             {
  40.                 System.Console.WriteLine("Elgiz");
  41.             }
  42.             */
  43.  
  44.             // boolean variable using
  45.             /*
  46.             bool a = 4 > 5;
  47.  
  48.             if (a)
  49.             {
  50.                 System.Console.WriteLine("Vagif");
  51.             }
  52.  
  53.             if (a)
  54.             {
  55.                 System.Console.WriteLine("Elgiz");
  56.             }
  57.  
  58.             a = !(4 > 5);
  59.  
  60.             if (a)
  61.             {
  62.                 System.Console.WriteLine("Vagif");
  63.             }
  64.  
  65.             if (a)
  66.             {
  67.                 System.Console.WriteLine("Elgiz");
  68.             }
  69.             */
  70.             /*
  71.             int a = int.Parse(System.Console.ReadLine());
  72.  
  73.             if (a > 80)
  74.             {
  75.                 System.Console.WriteLine("Hello");
  76.             }
  77.  
  78.             if (a < 80)
  79.             {
  80.                 System.Console.WriteLine("Bye!");
  81.             }
  82.             */
  83.             /*
  84.             int a = int.Parse(System.Console.ReadLine());
  85.  
  86.             if (a > 80)
  87.             {
  88.                 System.Console.WriteLine("Hello");
  89.             }
  90.  
  91.             if (a < 80)
  92.             {
  93.                 System.Console.WriteLine("Bye!");
  94.             }
  95.  
  96.             if (a == 80)
  97.             {
  98.                 System.Console.WriteLine("Hello");
  99.             }
  100.             */
  101.             /*
  102.             int a = int.Parse(System.Console.ReadLine());
  103.  
  104.             // ≥
  105.             if (a >= 80)
  106.             {
  107.                 System.Console.WriteLine("Hello");
  108.             }
  109.  
  110.             // ≤
  111.             if (a <= 80)
  112.             {
  113.                 System.Console.WriteLine("Bye!");
  114.             }
  115.             */
  116.             /*
  117.             int a = int.Parse(System.Console.ReadLine());
  118.             int b = int.Parse(System.Console.ReadLine());
  119.  
  120.             // ≥
  121.             if (a >= b)
  122.             {
  123.                 System.Console.WriteLine("Hello");
  124.             }
  125.  
  126.             // ≤
  127.             if (a <= b)
  128.             {
  129.                 System.Console.WriteLine("Bye!");
  130.             }
  131.             */
  132.         }
  133.     }
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement