Advertisement
Guest User

Задача 01 - Зеленчукова борса

a guest
Oct 2nd, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. double vegiePrice = double.Parse(Console.ReadLine());
  8. double friutPrice = double.Parse(Console.ReadLine());
  9. int vegieKilo = int.Parse(Console.ReadLine());
  10. int fruitKilo = int.Parse(Console.ReadLine());
  11.  
  12. double vegie = vegiePrice * (double)vegieKilo;
  13. double fruit = friutPrice * (double)fruitKilo;
  14.  
  15. Console.WriteLine("{0}", (vegie + fruit) / 1.94);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement