using System;
public class Program
{
public static void Main()
Double y, a = -5.7;
Double b = 12.4;
int x;
y = Math.Round(12.5);
Console.WriteLine("y={0}", y);
y = Math.Round(12.51);
y = Math.Round(a + b);
x = (int)(Math.Round(a));
Console.WriteLine("x={0}", x);
x = (int)(Math.Round(a + 0.5));
}