fork download
  1. using static System.Console;
  2. using static System.Math;
  3.  
  4. WriteLine(Round(0.2));
  5. WriteLine(Round(0.5));
  6. WriteLine(Round(0.8));
  7. WriteLine(Round(1.2));
  8. WriteLine(Round(1.5));
  9. WriteLine(Round(1.8));
  10. WriteLine(Round(-0.2));
  11. WriteLine(Round(-0.5));
  12. WriteLine(Round(-0.8));
  13. WriteLine(Round(-1.2));
  14. WriteLine(Round(-1.5));
  15. WriteLine(Round(-1.8));
  16.  
  17. //https://pt.stackoverflow.com/q/579752/101
Success #stdin #stdout 0.05s 25988KB
stdin
Standard input is empty
stdout
0
0
1
1
2
2
-0
-0
-1
-1
-2
-2