fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Console.WriteLine(Math.Round(5.1, MidpointRounding.AwayFromZero));
  8. Console.WriteLine(Math.Round(5.5, MidpointRounding.AwayFromZero));
  9. Console.WriteLine(Math.Round(5.9, MidpointRounding.AwayFromZero));
  10. }
  11. }
Success #stdin #stdout 0.03s 33912KB
stdin
Standard input is empty
stdout
5
6
6