Advertisement
VickSuna

Untitled

Feb 19th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _326_Godzilla_vs._Kong
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double budget = double.Parse(Console.ReadLine());
  10. int statists = int.Parse(Console.ReadLine());
  11. double PriceClothingFor1Statist = double.Parse(Console.ReadLine());
  12. double decor = budget * 0.10;
  13. double sumClothing = statists * PriceClothingFor1Statist;
  14. if (statists > 150)
  15. {
  16. sumClothing = sumClothing * 0.90;
  17. }
  18. double pricefilm = decor + sumClothing;
  19. if (pricefilm <= budget)
  20. {
  21. Console.WriteLine("Action!");
  22. Console.WriteLine($"Wingard starts filming with {budget - pricefilm:F2} leva left.");
  23. }
  24. else if (pricefilm > budget)
  25. {
  26. Console.WriteLine("Not enough money!");
  27. Console.WriteLine($"Wingard needs {pricefilm - budget:F2} leva more.");
  28.  
  29. }
  30.  
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement