Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MyNamespace
- {
- class MyClass
- {
- static void Main()
- {
- /*
- // ! operator using
- if (!true)
- {
- System.Console.WriteLine("Vagif");
- }
- if (!false)
- {
- System.Console.WriteLine("Elgiz");
- }
- // == operator using
- if (true == true)
- {
- System.Console.WriteLine("Vagif");
- }
- if (false == false)
- {
- System.Console.WriteLine("Elgiz");
- }
- */
- /*
- // != operator using
- if (true != true)
- {
- System.Console.WriteLine("Vagif");
- }
- if (false != false)
- {
- System.Console.WriteLine("Elgiz");
- }
- */
- // boolean variable using
- /*
- bool a = 4 > 5;
- if (a)
- {
- System.Console.WriteLine("Vagif");
- }
- if (a)
- {
- System.Console.WriteLine("Elgiz");
- }
- a = !(4 > 5);
- if (a)
- {
- System.Console.WriteLine("Vagif");
- }
- if (a)
- {
- System.Console.WriteLine("Elgiz");
- }
- */
- /*
- int a = int.Parse(System.Console.ReadLine());
- if (a > 80)
- {
- System.Console.WriteLine("Hello");
- }
- if (a < 80)
- {
- System.Console.WriteLine("Bye!");
- }
- */
- /*
- int a = int.Parse(System.Console.ReadLine());
- if (a > 80)
- {
- System.Console.WriteLine("Hello");
- }
- if (a < 80)
- {
- System.Console.WriteLine("Bye!");
- }
- if (a == 80)
- {
- System.Console.WriteLine("Hello");
- }
- */
- /*
- int a = int.Parse(System.Console.ReadLine());
- // ≥
- if (a >= 80)
- {
- System.Console.WriteLine("Hello");
- }
- // ≤
- if (a <= 80)
- {
- System.Console.WriteLine("Bye!");
- }
- */
- /*
- int a = int.Parse(System.Console.ReadLine());
- int b = int.Parse(System.Console.ReadLine());
- // ≥
- if (a >= b)
- {
- System.Console.WriteLine("Hello");
- }
- // ≤
- if (a <= b)
- {
- System.Console.WriteLine("Bye!");
- }
- */
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement