Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $distance = 40;
- $consumption = 5.5;
- $fuelPrice = 2.10;
- $result = $distance * ($consumption / 100 * $fuelPrice);
- printf("%.2f", $result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement