for loop with index in C

 


int main()

{

    int i;

    int loopNumbr [] = { 2, 4, 5,65,7,8, 9}; //there are 6 indeces in these arrya start 0 index


    for (i=0; i<7;i++){

    printf("%d\n", loopNumbr[i] );

    }



    return 0;

}


Comments

Popular posts from this blog

Using Struct C

arrays in c programming