Here is my code. My question is, why does it keep printing only 5 numbers? Why won't it print 10 like it's supposed to?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(){
int r, col;
srand((unsigned)time(NULL));
for (col=1; col<=10; col++){
r = rand() % 11;
printf("%d\n", r);
col++;
}
return 0;
}