Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace WeddingParty
- {
- class Program
- {
- static void Main(string[] args)
- {
- int guests = int.Parse(Console.ReadLine());
- int budget = int.Parse(Console.ReadLine());
- budget -= guests * 20;
- if (budget < 0)
- {
- Console.WriteLine($"They won't have enough money to pay the covert. They will need {Math.Abs(budget)} lv more.");
- }
- else
- {
- Console.WriteLine($"Yes! {Math.Round(0.40 * budget)} lv are for fireworks and {Math.Round(0.60 * budget)} lv are for donation.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement