Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $breackTime = intval(readline());
- $priceForOnePackCards = floatval(readline());
- $priceForOneAdvenger = floatval(readline());
- $coffeePrice = floatval(readline());
- $breackTimeLeft = $breackTime - 5 ;
- $moneyForCards = 3 * $priceForOnePackCards;
- $moneyForAdvenger = 2 * $priceForOneAdvenger;
- $spendMoney = $moneyForCards + $moneyForAdvenger + $coffeePrice;
- $timeLeft = $breackTimeLeft - 10;
- printf("%.2f\n",$spendMoney);
- printf("%.0f",$timeLeft);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement