Description
break is used to exit from a for, while or do…while loop, bypassing the normal loop condition. It is also used to exit from a switch case statement.
quindi dopo stato=1
devi aggiungere un break
per uscire dal for senza ulteriori confronti