fork(23) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. for (decimal x = 1 ; x != 2 ; x+=0.01M) {
  8. decimal y = Math.Ceiling(2*x) / 2;
  9. Console.WriteLine("{0:#.##} {1:#.##}", x, y);
  10. }
  11. }
  12. }
Success #stdin #stdout 0.01s 131648KB
stdin
Standard input is empty
stdout
1 1
1.01 1.5
1.02 1.5
1.03 1.5
1.04 1.5
1.05 1.5
1.06 1.5
1.07 1.5
1.08 1.5
1.09 1.5
1.1 1.5
1.11 1.5
1.12 1.5
1.13 1.5
1.14 1.5
1.15 1.5
1.16 1.5
1.17 1.5
1.18 1.5
1.19 1.5
1.2 1.5
1.21 1.5
1.22 1.5
1.23 1.5
1.24 1.5
1.25 1.5
1.26 1.5
1.27 1.5
1.28 1.5
1.29 1.5
1.3 1.5
1.31 1.5
1.32 1.5
1.33 1.5
1.34 1.5
1.35 1.5
1.36 1.5
1.37 1.5
1.38 1.5
1.39 1.5
1.4 1.5
1.41 1.5
1.42 1.5
1.43 1.5
1.44 1.5
1.45 1.5
1.46 1.5
1.47 1.5
1.48 1.5
1.49 1.5
1.5 1.5
1.51 2
1.52 2
1.53 2
1.54 2
1.55 2
1.56 2
1.57 2
1.58 2
1.59 2
1.6 2
1.61 2
1.62 2
1.63 2
1.64 2
1.65 2
1.66 2
1.67 2
1.68 2
1.69 2
1.7 2
1.71 2
1.72 2
1.73 2
1.74 2
1.75 2
1.76 2
1.77 2
1.78 2
1.79 2
1.8 2
1.81 2
1.82 2
1.83 2
1.84 2
1.85 2
1.86 2
1.87 2
1.88 2
1.89 2
1.9 2
1.91 2
1.92 2
1.93 2
1.94 2
1.95 2
1.96 2
1.97 2
1.98 2
1.99 2