fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  
  7. double x;
  8. double y;
  9.  
  10. cout << "12.8 * 17.5 - 34.50 = " << 12.8 * 17.5 - 34.50 << endl;
  11. cout << "x * 10.5 + y - 16.2 = " << x * 10.5 + y - 16.2 << endl;
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
12.8 * 17.5 - 34.50 = 189.5
x * 10.5 + y - 16.2 = -16.2