三种方式求最大公约数

1.更相减损法api 2.展转相除法spa 3.遍历code #include <stdio.h> void swapint(int*n, int*m) { int temp = 0; temp = *n; *n=*m; *m=temp; } int getgcd1(int m, int n) { int i = 0; while( m%2 == 0 && n%2 == 0) {
相关文章
相关标签/搜索