fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. double a, b;
  9. string c;
  10. cin>>c>>a>>b;
  11. cout<<"TOTAL = R$ "<<fixed<<setprecision(2)<<a+(b*15)/100<<endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3276KB
stdin
MANGOJATA
1700.00
1230.50
stdout
TOTAL = R$ 1884.58