Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06_GodzilaVsKong
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- int statists = int.Parse(Console.ReadLine());
- double priceClothes1stat = double.Parse(Console.ReadLine());
- double priceDecore = budget * 0.1;
- double priceClothes = statists * priceClothes1stat;
- if (statists>150)
- {
- priceClothes = priceClothes - priceClothes * 0.1;
- }
- if ((priceDecore+priceClothes)>budget)
- {
- double shortmoney = priceDecore + priceClothes - budget;
- Console.WriteLine("Not enough money!");
- Console.WriteLine($"Wingard needs {shortmoney:F2} leva more.");
- }
- else
- {
- double extramoney = budget - priceDecore - priceClothes;
- Console.WriteLine("Action!");
- Console.WriteLine($"Wingard starts filming with {extramoney:F2} leva left.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement