loading…
Print the ticket price in rupees for a person of age: under 5 is free (0), 5 to 12 pays 100, 60 and above pays 150, everyone else pays 250.
ticket(8) prints 100
ticket(30) prints 250
New to this? The If / Else & Loops lesson explains it from scratch.