Advertisement
drunin89

Fishland

Nov 24th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 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 IzpitniZadachi7lekciq
  8. {
  9.     class Fishland
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double skumriaPrice = double.Parse(Console.ReadLine());
  14.             double cacaPrice = double.Parse(Console.ReadLine());
  15.             double palamudKG = double.Parse(Console.ReadLine());
  16.             double safridKG = double.Parse(Console.ReadLine());
  17.             double midiKG = double.Parse(Console.ReadLine());
  18.             double sumaPalamud = palamudKG * 1.6 * skumriaPrice;
  19.             double sumaSafrid = safridKG * 1.8 * cacaPrice;
  20.             double sumaMidi = 7.5 * midiKG;
  21.             double result = sumaMidi + sumaPalamud + sumaSafrid;
  22.  
  23.             Console.WriteLine("{0:F2}", result);
  24.  
  25.  
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement