Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- int easterBreads, eggPacks, cookies;
- cin >> easterBreads >> eggPacks >> cookies;
- double sum = 3.20 * easterBreads + 4.35 * eggPacks + 5.4 * cookies + 0.15 * 12 * eggPacks;
- cout << fixed << setprecision(2) << sum << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement