Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06.GodzillaVsKong
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- int statists = int.Parse(Console.ReadLine());
- double pricePerStatist = double.Parse(Console.ReadLine());
- double priceDecor = budget * 0.1;
- double priceClothes = statists * pricePerStatist;
- if (statists > 150)
- {
- priceClothes = priceClothes - 0.1 * priceClothes;
- }
- double total = priceDecor + priceClothes;
- if (total > budget)
- {
- Console.WriteLine("Not enough money!");
- Console.WriteLine($"Wingard needs {total - budget:F2} leva more.");
- }
- else
- {
- Console.WriteLine("Action!");
- Console.WriteLine($"Wingard starts filming with {budget - total:F2} leva left.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment