解题思路:
注意事项:
参考代码:
#include<stdio.h>
int fun(int a,int b){
int x,y;
x = a;
y = b;
int t;
if(x<y){
t = x;
x = y;
y = t;
}
t = 1;
while(t!=0){
t = x%y;
x = y;
y = t;
}
return a*b/x;
}
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d",fun(a,fun(b,c)));
return 0;
}
0.0分
0 人评分
A+B for Input-Output Practice (VII) (C++代码)浏览:689 |
C语言程序设计教程(第三版)课后习题6.2 (C++代码)为什么回车不算字符浏览:1186 |
点我有惊喜!你懂得!浏览:1978 |
点我有惊喜!你懂得!浏览:1402 |
Biggest Number (C++代码)回溯法浏览:1613 |
C二级辅导-公约公倍 (C语言代码)浏览:1508 |
回文串 (C语言代码)浏览:2850 |
C语言程序设计教程(第三版)课后习题1.6 (C++代码)浏览:890 |
WU-C语言程序设计教程(第三版)课后习题12.1 (C++代码)浏览:923 |
1126题解浏览:584 |