nvnnaidenov

VegetableMarket - School Book 2.1

Jul 21st, 2021
1,681
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class VegetableMarket
  4. {
  5.     static void Main()
  6.     {
  7.         double vegetableWeight;
  8.         double fruidsWeight;
  9.         double vegetablePrice;
  10.         double fruidsPrice;
  11.  
  12.         vegetablePrice = double.Parse(Console.ReadLine());
  13.         fruidsPrice = double.Parse(Console.ReadLine());
  14.         vegetableWeight = double.Parse(Console.ReadLine());
  15.         fruidsWeight = double.Parse(Console.ReadLine());
  16.  
  17.         double total = (vegetableWeight * vegetablePrice + fruidsWeight * fruidsPrice) / 1.94;
  18.  
  19.         Console.WriteLine(total);
  20.     }
  21. }
RAW Paste Data