Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Fishland
- {
- class Program
- {
- static void Main(string[] args)
- {
- double mackerelPrice = double.Parse(Console.ReadLine());
- double spratPrice = double.Parse(Console.ReadLine());
- double bonitoFishKg = double.Parse(Console.ReadLine());
- double saffronKg = double.Parse(Console.ReadLine());
- double shellKg = double.Parse(Console.ReadLine());
- double bonitoFishSum = bonitoFishKg * mackerelPrice * 1.60;
- double saffronSum = saffronKg * spratPrice * 1.80;
- double shellSum = shellKg * 7.50;
- double sum = bonitoFishSum + saffronSum + shellSum;
- Console.WriteLine($"{sum:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement