Advertisement
vstoev

Untitled

Dec 5th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. const double euro_mag = 1.94;
  4.  
  5. using namespace std;
  6.  
  7. int main ()
  8. {
  9.     double vegetables, fruits;
  10.     double weight_v, weight_f;
  11.     double price, price_f, price v;
  12.    
  13.     cout<<"Vuvedete cena na zelenchucite v lv:";
  14.     cin>>vegetables;
  15.    
  16.     cout<<"Vuvedete cena na plodovete v lv:";
  17.     cin>>fruits;
  18.    
  19.     cout<<"Vuvedete tejest na zelenchucite v kg:"
  20.     cin>>weight_v;
  21.    
  22.     cout<<"Vuvedete tejest na plodovete v kg:";
  23.     cin>>weight_f;
  24.    
  25.     price_v =  vegetables*weight_v;
  26.     price_f = fruits*weight_f;
  27.    
  28.     price = (price_v + price_f)\euro_mag;
  29.    
  30.    
  31. cout<<"Cenata v evro e:"<<price;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement