Facebook
From Torrid Hummingbird, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 75
  1. using System;
  2.  
  3. namespace ConsoleApp24
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double buget = double.Parse(Console.ReadLine());
  10.             int statis = int.Parse(Console.ReadLine());
  11.             double PriceWear = double.Parse(Console.ReadLine());
  12.  
  13.             double decor = 0.10 * buget;
  14.             double statisCost = statis * PriceWear;
  15.            
  16.             if (statis > 150)
  17.             {
  18.                 double Staticcost = statisCost - (0.10 * statisCost);
  19.             }
  20.             double TotalMoney = decor + statisCost;
  21.             double moneyleft = buget - TotalMoney;
  22.             if (buget > TotalMoney)
  23.             {
  24.                 Console.WriteLine("Action!");
  25.                 Console.WriteLine($"Wingard starts filming with {Math.Abs(moneyleft):f2} leva left.");
  26.             }
  27.             else if (buget < TotalMoney)
  28.             {
  29.                 Console.WriteLine("Not enough money!");
  30.                 Console.WriteLine($"Wingard needs {Math.Abs(moneyleft):f2} leva more n ");
  31.             }
  32.             {
  33.  
  34.             }
  35.            
  36.  
  37.         }
  38.     }
  39. }
  40.