Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Wedding_Party
- {
- class Program
- {
- static void Main()
- {
- var count = int.Parse(Console.ReadLine());
- var bud = int.Parse(Console.ReadLine());
- var price = count * 20;
- var dif = bud - price;
- if (dif >= 0)
- Console.WriteLine($"Yes! {Math.Round (dif * 0.4)} lv are for fireworks and {Math.Round(dif * 0.6)} lv are for donation.");
- else
- Console.WriteLine($"They won't have enough money to pay the covert. They will need {price-bud} lv more.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement