Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int tuitionFee;
- cin >> tuitionFee;
- double shoesPrice = tuitionFee * 0.6;
- double teamClothes = shoesPrice * 0.8;
- double ball = teamClothes / 4;
- double accessories = ball / 5;
- double totalPrice = tuitionFee + shoesPrice + teamClothes + ball + accessories;
- cout << totalPrice << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement