EmoRz

VegetableMarket

Jun 14th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace vegetableMarket
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var vegetablePrice = double.Parse(Console.ReadLine());
  14.             var fruitPrice = double.Parse(Console.ReadLine());
  15.             var vegetableQuantity = int.Parse(Console.ReadLine());
  16.             var fruitQuantity = int.Parse(Console.ReadLine());
  17.  
  18.             var calculate = (vegetablePrice * vegetableQuantity + fruitPrice * fruitQuantity)/1.94;
  19.             Console.WriteLine(calculate);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment