Advertisement
Spocoman

Godzilla vs. Kong

Nov 28th, 2021 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. using System;
  2.  
  3. namespace GodzillaVsKong
  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 dresses = double.Parse(Console.ReadLine());
  12.             double decors = budget / 10;
  13.  
  14.             if (statists > 150)
  15.             {
  16.                 dresses *= 0.9;
  17.             }
  18.            
  19.             budget -= decors + statists * dresses;
  20.  
  21.             if (budget >= 0)
  22.             {
  23.                 Console.WriteLine("Action!");
  24.                 Console.WriteLine($"Wingard starts filming with {budget:F2} leva left.");
  25.             }
  26.             else
  27.             {
  28.                 Console.WriteLine("Not enough money!");
  29.                 Console.WriteLine($"Wingard needs {Math.Abs(budget):F2} leva more.");
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement