Advertisement
Guest User

Untitled

a guest
May 19th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement