Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp12
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- int statistNum = int.Parse(Console.ReadLine());
- double clothesPrice = double.Parse(Console.ReadLine());
- double decorSum = budget * 0.10;
- double clothesSum = statistNum * clothesPrice;
- if (statistNum > 150)
- {
- clothesSum -= clothesSum * 0.10;
- }
- double filmSum = decorSum + clothesSum;
- double moneyLeft = budget - filmSum;
- double discountToClothes = clothesSum * 0.10;
- if (filmSum > budget)
- {
- Console.WriteLine("Not enough money!");
- Console.WriteLine($"Wingard needs {filmSum - budget:f2} leva more.");
- }
- else if (filmSum <= budget)
- {
- Console.WriteLine("Action!");
- Console.WriteLine($"Wingard starts filming with {budget - filmSum:f2} leva left.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement