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