SHARE
TWEET

Untitled

a guest Oct 16th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace UchebnaZala
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             double priceSkumriqKg = double.Parse(Console.ReadLine());
  11.             double priceCacaKg = double.Parse(Console.ReadLine());
  12.             double palamudKg = double.Parse(Console.ReadLine());
  13.             double safridKg = double.Parse(Console.ReadLine());
  14.             double midiKg = double.Parse(Console.ReadLine());
  15.  
  16.  
  17.             double pricePalamud = (priceSkumriqKg * 1.6);
  18.             double priceSafrid = (priceCacaKg * 1.8);
  19.             double priceMidi = midiKg * 7.50;
  20.  
  21.  
  22.  
  23.             double palamudTotal = pricePalamud * palamudKg;
  24.  
  25.             double safridTotal = priceSafrid * safridKg;
  26.             double midiTotal = priceMidi * midiKg;
  27.            
  28.  
  29.             double totalPrice = palamudTotal + safridTotal + midiTotal;
  30.  
  31.             Console.WriteLine(Math.Round(totalPrice, 2));
  32.  
  33.  
  34.         }
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top