I want this while loop to assign sequntial values to different array so here is what I got
and it works fine but for some reason it keeps going after 100 and I have no idea why.Code:int j=0; while (j<=100) { for(int y=0;y<=(int)liklihood[0];y++) { zero[y]=j; cout<<"\n"<<zero[y]; j++; } for(int y=0;y<=(int)liklihood[1];y++) { one[y]=j; cout<<"\n"<<one[y]; j++; } for(int y=0;y<=(int)liklihood[2];y++) { two[y]=j; cout<<"\n"<<two[y]; j++; } for(int y=0;y<=(int)liklihood[3];y++) { three[y]=j; cout<<"\n"<<three[y]; j++; } for(int y=0;y<=(int)liklihood[4];y++) { four[y]=j; cout<<"\n"<<four[y]; j++; } }