Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- double mackerelPrice, spratPrice, bonitoFishKg, saffronKg, shellKg;
- cin >> mackerelPrice >> spratPrice >> bonitoFishKg >> saffronKg >> shellKg;
- double bonitoFishSum = bonitoFishKg * mackerelPrice * 1.60;
- double saffronSum = saffronKg * spratPrice * 1.80;
- double shellSum = shellKg * 7.50;
- printf("%.2f\n", bonitoFishSum + saffronSum + shellSum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement