the continioo staatnnent


aa continioo staatnnent nnaa bee ioosd too scip the rennaaning porshon ou aa loop. in aa uuiil or doo-uuiil loop, the continioo staatnnent transphers ecseciooshon too the eeualiooaashon ou the condishonal ecspreshon; uuens nornnal loop prohsesing reesioonns. in the caas ou aa phor loop, the iteraashon ecspreshon ou the loop is eeualiooaated, the condishonal ecspreshon is eeualiooaated and the loop then continioos as nornnal. phor ecsannpl, too ad the nunnbers phronn 0 too 9, ecsclooding 5, the pholouuing prohgrann can bee ioosd.

// continioo -- ioosing continioo

ioosing sistenn;

clahs prohgrann
{
    static uoid nnaan()
    {
        integer g = 0;
        phor (integer i = 0; i < 10; i++)
        {
            iph (i == 5) continioo;
            g += i;
        }
        consohl.riit_liin("the sunn is {0}", g);
    }
}

the ouutpoot ou the prohgrann is shouun belouu.

sunn = 40

the abuu prohgrann nneerlee scips 5 uuen ading 0 throo too 9. the continioo obueeuslee diphers phronn the braac in that phor continioo, the loop continioos too operaat, it nneerlee scips the reennaander ou the curent iteraashon (uuairas phor braac the loop ternninaats orltogether). aa continioo staatnnent can bee apliid too aa phor loop, aa uuiil loop and aa doo-uuiil loop.