【c语言】记录出错的结果题
#include<stdio.h>
void main(){
int a[12] = {76,63,54,62,40,75,80,92,77,84,44,73};
int b[4] = {60,70,90,101};
int c[4] = {0};
int i,j;
for(i=0;i<12;i++){
j=0;
while(a[i]>=b[j])
j++;
c[j]++;
}
for(i=0;i<4;i++)
printf("%d",c[i]);
printf("\n");
}
输出结果是3261