can someone tell me why this doesnt generate anything but 0's.
there is an array declared above called num[4][8] as well as the other variables.Code:void read() { for(suba = 0; suba < 4; suba++) { for(subb = 0; subb < 8; subb++) { x = rand()%51; if(x > 50 || x < 1) { num[suba][subb] = x; continue; } printf("%4d", num[suba][subb]); } printf("\n"); } }



LinkBack URL
About LinkBacks


