请补充函数fun(),该函数的功能是:求100(不包括100)以内能被2或5整除,但

题型:填空题

问题:

请补充函数fun(),该函数的功能是:求100(不包括100)以内能被2或5整除,但不能同时被2和5整除的自然数。结果保存在数组bb中,函数fun()返回数组比元素的个数。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。
试题程序:
#include <stdio.h>
#define N 100
int fun (int bb [] )

int i, j;
for( 【1】 ;i<100; i++)
if ((i%1!=0&&i%5==0)|| (i%2==0&&i%5 !=0)
【2】 ;
【3】 ;

main()

int i, n;
int bb [N];
clrscr ();
n=fun (bb);
for(i=0; i<n; i++)

if (i%10==0)
printf ("\n");
printf ("% 4d", bb [i]);

考点:计算机等级考试C语言二级C语言机试
题型:填空题

-Would you mind if I take the seat?

-         .

A.Yes, sit down, please

B.Surely, never mind

C.No, not at all

D.No, you can’t take it

题型:填空题

秦王嬴政能够灭六国,实现统一的根本原因是()

A.商鞅变法比较彻底,秦在七国中实力最强

B.秦在统一过程中采取了正确战略

C.统一条件成熟,嬴政顺应了历史发展趋势

D.秦王嬴政的雄才大略和将领的英勇善战

题型:填空题

Mr. Johnson's story _____ by everyone who heard it. [ ]

A. laughed at

B. was laughed

C. laughed

D. was laughed at

题型:填空题

适用劳动教养的人必须年满( )周岁。

A.14

B.15

C.16

D.18

题型:填空题

一般将黄酒酒温加热至()℃左右最佳。

A.30

B.35

C.40

D.45

更多题库