finally, round the result up to the nearest multiple of 5
Input Format: Take base, distance, minutesLate, and seed using prompt(). Output Format: Print the final fare using alert(). Constraints: 1 ≤ base ≤ 1000, 0 ≤ distance ≤ 100, 0 ≤ minutesLate ≤ 120, 0 ≤ seed ≤ 9
Solution:
Press the button to execute JS solution of the question.