Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- int days, cookers, cakes, waffles, pancakes;
- cin >> days >> cookers >> cakes >> waffles >> pancakes;
- double sum = days * cookers * ((cakes * 45) + (waffles * 5.80) + (pancakes * 3.20));
- printf("%.2f\n", sum - sum / 8);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement