using System; public class Test { public static void Main() { var roundedA = Math.Round(1.1, 0); // Output: 1 var roundedB = Math.Round(1.5, 0, MidpointRounding.AwayFromZero); // Output: 2 var roundedC = Math.Round(1.9, 0); // Output: 2 var roundedD = Math.Round(2.5, 0); // Output: 2 var roundedE = Math.Round(2.5, 0, MidpointRounding.AwayFromZero); // Output: 3 var roundedF = Math.Round(3.49, 0, MidpointRounding.AwayFromZero); // Output: 3 Console.WriteLine("A: " + roundedA); Console.WriteLine("B: " + roundedB); Console.WriteLine("C: " + roundedC); Console.WriteLine("D: " + roundedD); Console.WriteLine("E: " + roundedE); Console.WriteLine("F: " + roundedF); } }