fork download
  1. using System; // da 2+2==5.cs 1 april 2020
  2. namespace da225 { class da225
  3. { static void Main(string[] args)
  4.  
  5. { double a=2.4; double b=2.4; double c=0; c=a+b;
  6. Console.WriteLine("{0} + {1} = {2}",
  7. Math.Round(a), Math.Round(b), Math.Round(c));
  8.  
  9. double d=-2.4; a=-2.4; double v; v=d+a;
  10. Console.WriteLine("{0} {1} = {2}",
  11. Math.Round(d), Math.Round(a), Math.Round(v));
  12. }}}
Success #stdin #stdout 0.08s 30236KB
stdin
Standard input is empty
stdout
2 + 2 = 5
-2 -2 = -5