皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
设计一个函数 MinCommonMultiple() ,计算两个正整数的 最小公倍数 。 代码如下,按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 #include int MinCommonMultiple( int a, int b); int main() { int a, b, x; printf ( "Input a,b:" ); scanf ( "%d,%d" , &a, &b); x = _________________; if (__________) printf ( "MinCommonMultiple = %d\n" , x); else printf ( "Input error!\n" ); return 0; } //函数功能:计算两个正整数的最小公倍数,-1表示没有最小公倍数 int MinCommonMultiple( int a, int b) { int i; if (_________________) return -1; // 保证输入的参数为正整数 for (i=1; i
A.
第8行:    MinCommonMultiple(b, a) 第10行:     x != -1 第22行:   a<=0 || b<=0 第26行:   (i * a) / b==0
B.
第8行:    MinCommonMultiple(a, b) 第10行:    x != -1 第22行:   a<=0 || b<=0 第26行:   (i * a) % b==0
C.
第8行:    MinCommonMultiple(int a, int b) 第10行:     x = -1 第22行:   a<=0 || b<=0 第26行:   (i * a) % b==0
D.
第8行:    MinCommonMultiple 第10行:    x == -1 第22行:   a<=0 && b<=0 第26行:   (i * a) % b==0
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】一个人在读中国的古诗的时候,脑子中很快地出现了对应的画面,说明这个人的呈象能力很强。()
A.
正确
B.
错误
【多选题】On a 3550 EMI switch,  which three types of interfaces can be used to configure HSRP? ()
A.
Loopback interface
B.
SVI interfac
C.
Routed port
D.
Access port
E.
EtherChannel port channel
F.
BVI interface
【简答题】《四库全书》中记录:明朝嘉靖年间,被永昌人称为“杜甫后身”的人是( )。这件事被记录在《云南通志》第( )卷中,该卷的卷名是《杂纪》,其实包括了( )、( )、( )、( )四个部分。
【单选题】铁钉和铝板直接接触,他们之间的电化学腐蚀会使铝板钉孔( )
A.
扩大
B.
缩小
C.
不变
D.
都有可能
【单选题】将Catalyst 6500交换机的设备管理地址设置为214.1 18.1.10124的正确配置语句( )。
A.
set interface Vlanl 214.Il8.1.10 0.0.0.255 214.118.1.255
B.
set interface Vlanl 214.118.1.10 255.255.255.0 214.118.1.255
C.
set interface scO 214.118.1.10 0.0.0.255 214.118.1.255
D.
set interface scO 214.118.1.10 255.255.255.0 214.118.1.255
【单选题】UI设计是什么意思?
A.
User Interfac的缩写,是指用户界面设计
B.
User Identity的缩写,是指用户识别设计
C.
User Ideal的缩写,是指用户目标设计
D.
UserIntention的缩写,是指用户意图设计
【单选题】一般来说,学习的目的是改进行动模块的性能。因此,首先要弄清楚行动模块中哪些成分需要改进。以下说法不正确的是( )。
A.
从感知信息序列推断出环境的有关性质的手段
B.
关于环境演变方式的信息
C.
目标是描述一组使系统能力得到最小发挥的状态
D.
关于系统可采取的可能行动的后果信息
【单选题】下列关于异烟肼的叙述错误的是()
A.
对结核分枝杆菌选择性高,作用强
B.
对繁殖期和静止期细菌均有杀灭作用
C.
对细胞内的结核杆菌无作用
D.
单用易产生耐药性
E.
抗菌作用的机制是抑制分枝杆菌酸的合成
【单选题】(单选题) 在华为的eNB上,使用MML命令(),可以查看统计目前站点用户数。
A.
DSP S1USER
B.
DSP SCTPLNK
C.
DSP S1USERINFO
D.
DSP S1INTERFAC
【单选题】Yourcompanyhasaservernamedserver1thatrunswindowsserver2008.Server1runstheDHCPserverroleandtheDNSserverrole.Youalsohaveaservernamedservercorethatrunsaservercoreinstallationofwindowsserver2008.Allcomput...
A.
Run the netsh interfac eipv4 add dnsserve r“LAN”static 192.168.0.254index=1command.
B.
Run the netsh interfac eipv4 set dnsserver“LAN”static 192.168.0.254192.168.0.1bothcommand.
C.
Run the nets hinterfac eipv4 set dnsserver“LAN”static 192.168.0.254primary command and the netsh interface ipv4 set dnsserver “LAN” static 192.168.0.1both command.
D.
Run the netsh interface ipv4 set dnssserver“LAN”static 192.168.0.254 primary command and the netsh interface ipv4 add dnssserver “LAN” static 192.168.0.1index=1command.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题