#include #include void main(){int i,a[20],n=0;srand(time(NULL));for(i=0;i<20;i++){a[i]=rand()%146+60;printf("%-4d",a[i]);n++;if(n%5==0)printf("\n");}}
运行示例: