public static void Main()
Console.WriteLine("Set the value of X: ");
int X = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Set the value of Y: ");
int Y = Convert.ToInt32(Console.ReadLine());
Z = (X - Y) * 5 / (X + Y) - (Y % X);
Console.WriteLine("The result of the expression 'Z =(X-Y)*5/(X+Y)-(Y%X)'");
Console.WriteLine("With X={0}, Y={1}", X, Y);
Console.WriteLine("Is Z={0},", Z);