Advertisement
boykopk

Untitled

Nov 29th, 2017
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. using System;
  2.  
  3. namespace VegetableMarket
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. var veggie = double.Parse(Console.ReadLine());
  10. var fruit = double.Parse(Console.ReadLine());
  11. var vegQ = int.Parse(Console.ReadLine());
  12. var fruQ = int.Parse(Console.ReadLine());
  13.  
  14. double EUR = 1.94;
  15.  
  16. double totalV = veggie * vegQ;
  17. double totalF = fruit * fruQ;
  18.  
  19. Console.WriteLine("Total Earnings: " + ((totalV + totalF) / EUR));
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement