public static void Main()
a = Math.Round(x / 3) * 3;
b = Math.Round(y / 3) * 3;
c = Math.Round(w / 3) * 3;
Console.WriteLine("x = {0}",x);
Console.WriteLine("y = {0}", y);
Console.WriteLine("w = {0}", w);
Console.WriteLine("x = {0}", a);
Console.WriteLine("y = {0}", b);
Console.WriteLine("w = {0}", c);
Console.WriteLine("x = " + (Math.Round(x / 5) * 5));
Console.WriteLine("y = " + (Math.Round(y / 5) * 5));
Console.WriteLine("w = " + (Math.Round(w / 5) * 5));
Console.WriteLine(Math.Round(x / 2) * 2);