grach

2016_November_20M Fishland

Dec 27th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 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 Fishland
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.             double SkumPrice = double.Parse(Console.ReadLine());
  15.             double CacaPrice = double.Parse(Console.ReadLine());
  16.             double PalaPrice = double.Parse(Console.ReadLine());
  17.             double SafrPrice = double.Parse(Console.ReadLine());
  18.             double MidiPrice = double.Parse(Console.ReadLine());
  19.  
  20.             var palamud = SkumPrice + SkumPrice * 0.6;
  21.             var PalaSum = PalaPrice * palamud;
  22.  
  23.             var safrid = CacaPrice + CacaPrice * 0.8;
  24.             var SafrSum = SafrPrice * safrid;
  25.  
  26.             var midi = MidiPrice * 7.50;
  27.  
  28.             var total = PalaSum + SafrSum + midi;
  29.  
  30.             Console.WriteLine($"{total:f2}");
  31.  
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment