hawzze

C#SoftUni_АлкохолнаБорса

Jun 28th, 2020
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {    double br = 25;
  9.  
  10.              double wiskeyLv = double.Parse(Console.ReadLine());
  11.              double beer = double.Parse(Console.ReadLine());
  12.              double wine = double.Parse(Console.ReadLine());
  13.              double brandy = double.Parse(Console.ReadLine());
  14.              double wiskey = double.Parse(Console.ReadLine());
  15.          
  16.            
  17.  
  18.              double Brandy = brandy * br;
  19.             double Wine=br-(0.4*br);
  20.             double Beer = br - (0.8 * br);
  21.          
  22.             double SumBrandy=brandy*br;
  23.             double SumWine = Wine * wine;
  24.             double SumBeer = Beer * beer;
  25.             double SumWiskey = wiskey * wiskeyLv;
  26.  
  27.             double total = SumWine + Brandy + SumBeer + SumWiskey;
  28.             Console.WriteLine($"{total:f2}");
  29.  
  30.  
  31.  
  32.         }
  33.  
  34.     }
  35. }
RAW Paste Data