public static void Main()
public static void ArithmeticOperators()
Console.WriteLine("-----------Arithmetic operators-----------");
Console.WriteLine("Line 1 - Value of c is {0}", c);
Console.WriteLine("Line 2 - Value of c is {0}", c);
Console.WriteLine("Line 3 - Value of c is {0}", c);
Console.WriteLine("Line 4 - Value of c is {0}", c);
Console.WriteLine("Line 5 - Value of c is {0}", c);
Console.WriteLine("Line 6 - Value of c is {0}", c);
Console.WriteLine("Line 7 - Value of c is {0}", c);
public static void RelationalOperators()
Console.WriteLine("-----------Relational operators-----------");
Console.WriteLine("Line 1 - a is equal to b");
Console.WriteLine("Line 1 - a is not equal to b");
Console.WriteLine("Line 2 - a is less than b");
Console.WriteLine("Line 2 - a is not less than b");
Console.WriteLine("Line 3 - a is greater than b");
Console.WriteLine("Line 3 - a is not greater than b");
Console.WriteLine("Line 4 - a is either less than or equal to b");
Console.WriteLine("Line 5-b is either greater than or equal to b");
public static void LogicalOperators()
Console.WriteLine("-----------Logical operators-----------");
Console.WriteLine("Line 1 - Condition is true");
Console.WriteLine("Line 2 - Condition is true");
Console.WriteLine("Line 3 - Condition is true");
Console.WriteLine("Line 3 - Condition is not true");
Console.WriteLine("Line 4 - Condition is true");
public static void AssignmentOperators()
Console.WriteLine("-----------Assignment operators-----------");
Console.WriteLine("Line 1 - = Value of c = {0}", c);
Console.WriteLine("Line 2 - += Value of c = {0}", c);
Console.WriteLine("Line 3 - -= Value of c = {0}", c);
Console.WriteLine("Line 4 - *= Value of c = {0}", c);
Console.WriteLine("Line 5 - /= Value of c = {0}", c);
Console.WriteLine("Line 6 - %= Value of c = {0}", c);
Console.WriteLine("Line 7 - <<= Value of c = {0}", c);
Console.WriteLine("Line 8 - >>= Value of c = {0}", c);
Console.WriteLine("Line 9 - &= Value of c = {0}", c);
Console.WriteLine("Line 10 - ^= Value of c = {0}", c);
Console.WriteLine("Line 11 - |= Value of c = {0}", c);
public static void MiscellaneouOperators()
Console.WriteLine("-----------Miscellaneou operators-----------");
Console.WriteLine("The size of int is {0}", sizeof(int));
Console.WriteLine("The size of short is {0}", sizeof(short));
Console.WriteLine("The size of double is {0}", sizeof(double));
Console.WriteLine("Value of b is {0}", b);
Console.WriteLine("Value of b is {0}", b);