Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Godzilla_vs._Kong
- {
- class Program
- {
- static void Main(string[] args)
- {
- double movieBudged = double.Parse(Console.ReadLine());
- int statistsCount = int.Parse(Console.ReadLine());
- double statistClothesPrice = double.Parse(Console.ReadLine());
- double decorSum = movieBudged * 0.10;
- double clothesSum = statistsCount * statistClothesPrice;
- double discount = 0.0;
- if (statistsCount > 150)
- {
- discount = clothesSum * 0.10;
- clothesSum = clothesSum - discount;
- }
- double totalSum = decorSum + clothesSum;
- if (totalSum > movieBudged)
- {
- Console.WriteLine("Not enough money!");
- Console.WriteLine("Wingard needs {0:F2} leva more.", Math.Abs(movieBudged - totalSum));
- }
- else if (totalSum <= movieBudged)
- {
- Console.WriteLine("Action!");
- Console.WriteLine("Wingard starts filming with {0:F2} leva left.", movieBudged - totalSum);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement