Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- const double euro_mag = 1.94;
- using namespace std;
- int main ()
- {
- double vegetables, fruits;
- double weight_v, weight_f;
- double price, price_f, price v;
- cout<<"Vuvedete cena na zelenchucite v lv:";
- cin>>vegetables;
- cout<<"Vuvedete cena na plodovete v lv:";
- cin>>fruits;
- cout<<"Vuvedete tejest na zelenchucite v kg:"
- cin>>weight_v;
- cout<<"Vuvedete tejest na plodovete v kg:";
- cin>>weight_f;
- price_v = vegetables*weight_v;
- price_f = fruits*weight_f;
- price = (price_v + price_f)\euro_mag;
- cout<<"Cenata v evro e:"<<price;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement