一些常见的问题
最大公约数
#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
int fun(int,int);
int m;
int n;//m,n 用于接收键盘输入的参数
scanf("%d,%d",&m,&n);
if(m<n){
int temp;
temp = m;
m = n;
n = m;
}
printf("%d,%d的最大公约数为:%d\n",m,n,fun(m,n));
return 1;
}
int fun(int m,int n){
int res = 0;
while(n!=0)