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