文章
5
粉丝
70
获赞
0
访问
2.6k
#include <iostream>
using namespace std;
#define max 100
void maopao(int *a, int len){//升序排列
int tempt;
for (int i = 0; i < len; i++){
for (int j = 0; j < len - 1 - i; j++)
if (a[j]>a[j + 1]){
tempt = a[j];
a[j] = a[j + 1];
a[j + 1] = tempt;
}
}
}
void zhenf(int m, int n,int &sum){//m<n
int flag = 0;
for (int i = 2; i <=m; i++){
if (m%i == 0 && n%i == 0){
flag = 1;
break;
 ...
登录后发布评论
暂无评论,来抢沙发