【真题-改错】下列给定函数fun()的功能是:求两个非零正整数的最大公约数,并作为函数值返回。 例如,num1和num2分别为49和21,则输出的最大公约数是7;若num1和num2分别为27和81,则输出的最大公约数是27; 请改正的错误,使其得出正确的结果。 注意:不要改动main()函数,不得增加行数或删除行数。也不得更改程序的结构! #include
int fun(int a,int b) { int r,t; if(a
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Given the relatively few restrictions governing access and usage, it is the communications modal equivalent of international waters. 此处given 表示