解题思路:
注意事项:
参考代码:
#include <iostream> using namespace std; int main() { int a = 0, b = 0, c = 0, d = 0; cin >> a >> b; d = a * b; while (b){ c = a % b; a = b; b = c; } cout << a << ' ' << d / a ; return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题1.6 (C++代码)浏览:907 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:599 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:797 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:500 |
淘淘的名单 (C语言代码)浏览:1162 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:556 |
字符逆序 (C语言代码)浏览:498 |
星期判断机 (C语言代码)浏览:884 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:411 |
简单的a+b (C语言代码)浏览:850 |