AJMitev

VegetableShop

Jan 17th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2.  
  3. namespace VegetablesShop
  4. {
  5. class VegetableShop
  6. {
  7. static void Main(string[] args)
  8. {
  9. double vegetablePrice = double.Parse(Console.ReadLine());
  10. double frutsPrice = double.Parse(Console.ReadLine());
  11. int vegetableWeight = int.Parse(Console.ReadLine());
  12. int frutsWeight = int.Parse(Console.ReadLine());
  13.  
  14. double vegetableValue = vegetablePrice * vegetableWeight;
  15. double frutsValue = frutsPrice * frutsWeight;
  16. double euroValue = (frutsValue + vegetableValue) / 1.94;
  17. Console.WriteLine(euroValue);
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment