SHARE
TWEET

Untitled

a guest May 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace _06.Fishland
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double priceMackerel = double.Parse(Console.ReadLine());            //скумрия 6.9
  10.             double priceSprat = double.Parse(Console.ReadLine());               // цаца 4.20
  11.             double quantityBeltedBonito = double.Parse(Console.ReadLine());     //паламуд 1.5
  12.             double quantityScad = double.Parse(Console.ReadLine());             //сафрид 2.5
  13.             int quantityMussel = int.Parse(Console.ReadLine());                 //миди 1
  14.  
  15.             double priceBeltedbonito = priceMackerel * 1.60;    
  16.             double priceScad = priceSprat * 1.80;                
  17.             double priceMussel = 7.50;    
  18.            
  19.             double total = quantityBeltedBonito * priceBeltedbonito + quantityScad * priceScad + quantityMussel * priceMussel;
  20.  
  21.             Console.WriteLine(Math.Round(total,2));
  22.  
  23.         }
  24.     }
  25. }
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