samedi 24 octobre 2015

logically, Is it allow to repeat "else" more than one time in the if statment?

While i'm learning basics of CS. i saw a if statment not use "else" more than one time in every if statment! when he have 3 options he write: if () {} else { if () {} else {} }!

why don't we write: if () {} else {} else {}?!

Aucun commentaire:

Enregistrer un commentaire