fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float a,b,c;
  6. cin>>a;
  7. cin>>b;
  8. c = a+b;
  9. cout<<"a + b - "<<c;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5292KB
stdin
2.23
3.45
stdout
a + b - 5.68