Advertisement
bobo_bobkata

Untitled

Jul 7th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include<iostream>
  2. #include <string>
  3. #include <sstream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int number;
  10. cin >> number;
  11. double sumOne = number * 0.7;
  12. double sumTwo = sumOne * 0.85;
  13. double sumThree = sumTwo / 2;
  14. cout.setf(ios::fixed);
  15. cout.precision(2);
  16. cout << sumOne + sumTwo + sumThree + number << endl;
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement