20 . 下列程序的运行结果是:()
20 . 下列程序的运行结果是:()
#include <stdio.h>
int main(){
int i,a[10]={1,2,3,4,5,6,7,8,9,10};
for(i=0;i<10;i++)
if(a[i]%2)
printf("%3d",a[i]);
return 0;} [单选题] *
A.1 3 5 7 9
B.2 4 6 8 10
C.1 2 3 4 5
D.6 7 8 9 10
20 . 下列程序的运行结果是:()
#include <stdio.h>
int main(){
int i,a[10]={1,2,3,4,5,6,7,8,9,10};
for(i=0;i<10;i++)
if(a[i]%2)
printf("%3d",a[i]);
return 0;} [单选题] *
A.1 3 5 7 9
B.2 4 6 8 10
C.1 2 3 4 5
D.6 7 8 9 10