SHARE
TWEET

Untitled

a guest Oct 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Godzilla_vs._Kong
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double budget = double.Parse(Console.ReadLine());
  10.  
  11.             double statsmen = double.Parse(Console.ReadLine());
  12.  
  13.             double clothesPrice = double.Parse(Console.ReadLine());
  14.  
  15.             double decorFee = budget / 10;
  16.  
  17.             double clothesValue = statsmen * clothesPrice;
  18.  
  19.             double movieSum = 0;
  20.  
  21.             if (statsmen > 150)
  22.  
  23.             {
  24.  
  25.                 clothesValue = clothesValue * 0.9;
  26.  
  27.             }
  28.  
  29.             movieSum = budget - (decorFee + clothesValue);
  30.  
  31.             if (movieSum < 0)
  32.  
  33.             {
  34.  
  35.                 Console.WriteLine("Not enough money!");
  36.  
  37.                 Console.WriteLine($"Wingard needs { Math.Abs(movieSum):F2} leva more.");
  38.  
  39.             }
  40.  
  41.             else
  42.  
  43.             {
  44.  
  45.                 Console.WriteLine("Action!");
  46.  
  47.                 Console.WriteLine($"Wingard starts filming with { movieSum:F2} leva left.");
  48.  
  49.             }
  50.  
  51.         }
  52.     }
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top