国家开放大学 / C语言程序设计
#include
#define N 8
void main() {
int a[N]={12,39,26,41,55,63,72,40};
int i, i1=0, i2=0;
for(i=0;i if(a[i]%2==1) i1 ; else i2 ;
printf("%d %d
",i1,i2);
}
#define N 8
void main() {
int a[N]={12,39,26,41,55,63,72,40};
int i, i1=0, i2=0;
for(i=0;i
printf("%d %d
",i1,i2);
}
参考答案:
佳题速递: