I keep trying to give the program a condition. If the day is < 0 and > 13 the program should stop and print "Incorrect month". If the month satisfies the conditions it should continue to the day question. However, if the day conditions aren't satisfied it should print "Incorrect day". When the program works it prints the month error correctly but when the day is wrong it prints both incorrect month and day.
I need it to print differently, like this. How do I fix this or write it?
Aucun commentaire:
Enregistrer un commentaire