Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace softuni1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int days = int.Parse(Console.ReadLine());
- int chefs = int.Parse(Console.ReadLine());
- int cakes = int.Parse(Console.ReadLine());
- int waffles = int.Parse(Console.ReadLine());
- int pancakes = int.Parse(Console.ReadLine());
- int SumCakes = cakes * 45;
- double SumWaffles = waffles* 5.80;
- double SumPancakes = pancakes * 3.20;
- double totalFor1day = (SumCakes + SumWaffles + SumPancakes) * 8;
- double totalCompany = totalFor1day * 20;
- double afterCosts = totalCompany - (double)1 / 8 * totalCompany;
- Console.WriteLine( $"{ afterCosts:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement