Advertisement
Guest User

Untitled

a guest
Jun 12th, 2016
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8. class Vegetable
  9. {
  10. static void Main(string[] args)
  11. {
  12. double priceVegetable = double.Parse(Console.ReadLine());
  13. double priceFruit = double.Parse(Console.ReadLine());
  14. int kgVegetable = int.Parse(Console.ReadLine());
  15. int kgFruit = int.Parse(Console.ReadLine());
  16. double first = (priceVegetable * kgVegetable) / 1.94;
  17. double second = (priceFruit * kgFruit) / 1.94;
  18. double resul = first + second;
  19. Console.WriteLine("{0}", resul);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement