Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- // Cherry Jars
- int main()
- {
- double kompot, konfitur;
- cin >> kompot >> konfitur;
- kompot++;
- konfitur++;
- double kompocherry = kompot * 0.300 * 1.05;
- double konficherry = konfitur * 0.650 * 1.1;
- double cherry = kompocherry + konficherry;
- double price = cherry * 3.2;
- printf("%.2f\n", price);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement