im gonna write code with help of just if and else. in this program i wanna to ask the user to indicate which category it belongs to - adult, pensioner, student. If it is a pensioner or student, the trip costs 20 Dollar. If it is adult costs travel 30 Dollar. Otherwise, the user must be informed that he has entered an error category.
Aucun commentaire:
Enregistrer un commentaire