Using continue function

 #include<stdio.h>


int main(){

    int skip=5, i=0;

    while(i<10){

        i++;

        if(i!=skip){

            continue;

        }

        else{

            printf("%d\n", i);

        }

    }

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function