Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FishMarket
- {
- class FishMarket
- {
- static void Main(string[] args)
- {
- double mackerel = double.Parse(Console.ReadLine()); // скумрия лв/кг
- double sprat = double.Parse(Console.ReadLine()); // цаца лв/кг
- double beltedbonito = double.Parse(Console.ReadLine()); // паламуд -кг
- double scad = double.Parse(Console.ReadLine()); // сафрид- кг
- int clams = int.Parse(Console.ReadLine()); // миди -кг
- double priceBeltedbonito = mackerel + mackerel * 0.6;
- double priceScad = sprat + sprat *0.8;
- double priceClams = 7.50;
- double many = priceBeltedbonito * beltedbonito + priceScad * scad + (double)priceClams * clams;
- Console.WriteLine($"{many:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement