mardi 22 septembre 2015

case is not working if input other characters beside integers

My problem is when I input other characters beside integers. instead of going to default. it is not stopping in loop. even i use if statement

While(choice!=5)
 case 1:
 case 2:
 case 3:
 case 4:
 case 5:
 default:

Aucun commentaire:

Enregistrer un commentaire