Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numberOfDays = int.Parse(Console.ReadLine());
- int numberofBakers = int.Parse(Console.ReadLine());
- int numberofCakes = int.Parse(Console.ReadLine());
- int numberofWaffles = int.Parse(Console.ReadLine());
- int numberofPancakes = int.Parse(Console.ReadLine());
- double productionofCakes = numberOfDays * numberofBakers * numberofCakes * 45;
- double productionofWaffles = numberOfDays * numberofBakers * numberofWaffles * 5.80;
- double productionofPancakes = numberOfDays * numberofBakers * numberofPancakes * 3.20;
- double productionAll = productionofCakes + productionofWaffles + productionofPancakes;
- double moneySaved = 0.875 * productionAll;
- Console.WriteLine($"{ moneySaved:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement