continue or break statement

 #include <stdio.h>


int main()

{int i ;

for ( i = 1 ; i<= 10 ; i++ ) {

    if ( i ==5) 

//break;

    continue ;

    printf(" %d -------  Hello World \n" , i);

}

    


    return 0;

}


Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation