fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. double x = 0.0d;
  6. for (var i = 0; i < 1000; i++) x += 0.1d;
  7. WriteLine(x);
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/59010/101
Success #stdin #stdout 0.02s 16164KB
stdin
Standard input is empty
stdout
99.9999999999986