#include
#include
#include
#define M 100
int main(int argc, char *argv[])
{
struct shu
{
int i;
struct shu *next;
}s[M];
int i,j=0;
srand(time(NULL));
for(i=0;i
s[M-1].i=rand()%1001;s[i].next=NULL;
for(i=0;i
if(s[i].i%2) j++;
printf((i+1)%10?"%5d":"%5d\n",s[i].i);
}
printf("奇数:%d\t偶数:%d\n",j,M-j);
return 0;
}