單項(xiàng)選擇題

下列程序的運(yùn)行結(jié)果是:()
#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


您可能感興趣的試卷