goto statement stops current execution process and starts execution at a specified position.
int ori = 10; for (int i = 0; i < 5; i++) { ori = ori + 5; if (i == 3) goto pos; } pos: ori += 10; //ori is 40
int ori = 10; for (int i = 0; i < 5; i++) { for (int j = 0; j < 10; j++) { ori = ori + 5; if (i == 3) goto pos; } } pos: ori += 10; //175