Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace vegetableMarket
- {
- class Program
- {
- static void Main(string[] args)
- {
- var vegetablePrice = double.Parse(Console.ReadLine());
- var fruitPrice = double.Parse(Console.ReadLine());
- var vegetableQuantity = int.Parse(Console.ReadLine());
- var fruitQuantity = int.Parse(Console.ReadLine());
- var calculate = (vegetablePrice * vegetableQuantity + fruitPrice * fruitQuantity)/1.94;
- Console.WriteLine(calculate);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment