Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $guestsNumber = readline();
- $ivanovisBudget = readline();
- $couvertsPrice = 20 * $guestsNumber;
- if ($couvertsPrice < $ivanovisBudget){
- echo "Yes! ".round(($ivanovisBudget - $couvertsPrice) * 0.40)." lv are for fireworks and ".round(($ivanovisBudget - $couvertsPrice) * 0.60)." lv are for donation.";
- }
- else{
- echo "They won't have enough money to pay the covert. They will need ".round($couvertsPrice - $ivanovisBudget)." lv more.";
- }
Advertisement
Add Comment
Please, Sign In to add comment