fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a = 2.12, b = 5.94;
  6. a = a - b;
  7. cout << a;
  8. return 0;
  9. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
-3.82