using System;
public class Program
{
public static void Main()
// Variable declaration
int x, y, z;
// Assignment operator
x = 6;
y = 44;
z = 66;
// There are many Mathematical Operators ...
// Addition operator
x = 5 + 7;
// Subtraction operator
y = 4 - 2;
// Multiplication operator
z = 10 * 50;
// Division operator
x = 10 / 2;
// Order of operations using parenthesis
x = (x + y) * (x - z);
// There are many operators used to evaluate values ...
// Equality operator
if (x == y)
}
// Greater than operator
if (x > y)
// Less than operator
if (x < y)
// Greater or equal to operator
if (x >= y)
// Less than or equal to operator
if (x <= y)
// There are two "conditional" operators as well that can
// be used to expand / enhance an evaluation ...
// ... and they can be combined together multiple times.
// Conditional AND operator …
if ( (x > y) && (z > y))
// Conditional OR operator …
if ((x > y) || (z > y))
x = 5;
y = 6;
z = 7;
if ( (z > y) && (y == x) )
Console.WriteLine("True");
else
Console.WriteLine("False");
Console.ReadLine();