Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Loopsk
- {
- class Program
- {
- static void Main(string[] args)
- {
- double buget = double.Parse(Console.ReadLine());
- int countStatist = int.Parse(Console.ReadLine());
- double pricePerOneStatist = double.Parse(Console.ReadLine());
- double clothesMoney = countStatist * pricePerOneStatist;
- double dekorAfterProcent = buget * 0.1;
- double totalMoney = dekorAfterProcent + clothesMoney;
- if (countStatist > 150)
- {
- clothesMoney = (clothesMoney * 0.9);
- }
- if (totalMoney > buget)
- {
- Console.WriteLine("Not enough money!");
- Console.WriteLine($"Wingard needs {totalMoney - buget:f2} leva more.");
- }
- else
- {
- Console.WriteLine("Action!");
- Console.WriteLine($"Wingard starts filming with {buget - totalMoney:f2} leva left.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment