Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Task 002, Chapter 2.1
- using System;
- public class VegetableMarket
- {
- static void Main()
- {
- double vegetablePrice = double.Parse(Console.ReadLine());
- double fruidPrice = double.Parse(Console.ReadLine());
- int vegetableWeight = int.Parse(Console.ReadLine());
- int fruidWeight = int.Parse(Console.ReadLine());
- double total = (vegetablePrice * vegetableWeight + fruidPrice * fruidWeight) / 1.94;
- Console.WriteLine(total);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment