Advertisement
krasio12356

Cherry Jars

Apr 16th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.                                        // Cherry Jars
  5.  
  6. int main()
  7. {
  8.     double kompot, konfitur;
  9.     cin >> kompot >> konfitur;
  10.     kompot++;
  11.     konfitur++;
  12.     double kompocherry = kompot * 0.300 * 1.05;
  13.     double konficherry = konfitur * 0.650 * 1.1;
  14.     double cherry = kompocherry + konficherry;
  15.     double price = cherry * 3.2;
  16.     printf("%.2f\n", price);
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement