Advertisement
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 n = double.Parse(Console.ReadLine());
- var m = double.Parse(Console.ReadLine());
- var nkg = double.Parse(Console.ReadLine());
- var mkg = double.Parse(Console.ReadLine());
- var total = (n * nkg + m * mkg) / 1.94;
- Console.WriteLine("{0}", total);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement