Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp39
- {
- class Program
- {
- static void Main(string[] args)
- {
- int eggPrice = int.Parse(Console.ReadLine());
- int firstMonth = int.Parse(Console.ReadLine());
- int secondMonth = int.Parse(Console.ReadLine());
- int thirdMonth = int.Parse(Console.ReadLine());
- double leva = eggPrice * 0.010;
- int eggCount = (firstMonth * 20) + ((firstMonth + secondMonth) * 20) + ((firstMonth + secondMonth + thirdMonth) * 20);
- int totalEggs = ((eggCount * 96) / 100);
- double profit = Math.Floor(totalEggs * leva);
- Console.WriteLine(profit);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement