Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace EasterBakery
- {
- class Program
- {
- static void Main(string[] args)
- {
- double flourKg = double.Parse(Console.ReadLine());
- double flourPrice = double.Parse(Console.ReadLine());
- double sugarKg = double.Parse(Console.ReadLine());
- double eggPack = double.Parse(Console.ReadLine());
- double yeast = double.Parse(Console.ReadLine());
- double flourTotal = flourKg * flourPrice;
- double sugarTotal = flourKg * sugarKg * 0.75;
- double eggPackTotal = flourKg * eggPack * 1.1;
- double yeastTotal = flourKg * 0.75 * yeast * 0.2;
- double sum = flourTotal + sugarTotal + eggPackTotal + yeastTotal;
- Console.WriteLine($"{sum:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement