以下程序是从终端读入数据到数组中,统计其中正数的个数,并计算它们的和。请填空。 main() { int i,a[20],sum,count; sum=count= 【17】 ; for(i=0;i<20;i++)scanf("%d", 【18】 ); for(i=0;i<20;i++) { if(a[i]>0) { count++: sum+= 【19】 ; } } printf("sum=%d,count=%d\n",sum.count); }
查看答案
A -- Graduation thesis B -- Distance education C -- Credit system D -- Teaching program E -- Content of course F -- Spoon-feeding method of teaching G -- Test and evaluation of accomplishment H -- Education based on electric audio-visual aids I -- Bachelor’s degree J -- Full-time regular school K -- Seminar L -- Computer-assisted instruction M -- Entrance examination N -- Reform in education O -- Master’s degree P -- Compulsory education Q -- In-service training ( ) 义务教育 ( ) 硕士学位
A -- Graduation thesis B -- Distance education C -- Credit system D -- Teaching program E -- Content of course F -- Spoon-feeding method of teaching G -- Test and evaluation of accomplishment H -- Education based on electric audio-visual aids I -- Bachelor’s degree J -- Full-time regular school K -- Seminar L -- Computer-assisted instruction M -- Entrance examination N -- Reform in education O -- Master’s degree P -- Compulsory education Q -- In-service training ( ) 入学考试 ( ) 全日制学校
甲某的外祖父与乙某的父亲是亲兄弟,丙某的外祖母与丁某的祖母是亲姐妹。则( )。
A. 甲某与乙某、丙某与丁某的婚姻均有效
B. 甲某与乙某、丙某与丁某的婚姻均无效
C. 甲某与乙某的婚姻无效,丙某与丁某的婚姻有效
D. 甲某与乙某的婚姻有效,丙某与丁某的婚姻无效