Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- double vegiePrice = double.Parse(Console.ReadLine());
- double friutPrice = double.Parse(Console.ReadLine());
- int vegieKilo = int.Parse(Console.ReadLine());
- int fruitKilo = int.Parse(Console.ReadLine());
- double vegie = vegiePrice * (double)vegieKilo;
- double fruit = friutPrice * (double)fruitKilo;
- Console.WriteLine("{0}", (vegie + fruit) / 1.94);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement