摘要: #include<stdio.h>int main() { int sum,a,n; int san(int a,int n); scanf("%d %d",&a,&n); sum=san(a,n); printf("%d",sum); return 0; } int san(int a, int 阅读全文
posted @ 2021-02-23 18:22 友伯树 阅读(482) 评论(0) 推荐(0)
摘要: #include<stdio.h>///求最大公约数,最小公倍数 int big(int a ,int b); int unbig(int a,int b); int main() { int a ,b,big1,unbig1; scanf("%d %d",&a,&b); big1=big(a,b) 阅读全文
posted @ 2021-02-23 17:49 友伯树 阅读(87) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> int main{ int sign=1;double pi=0.0,n=1.0,team=1.0;long int l=0;//表示循环的次数while(fabs(team)>=1e-6){ l++; pi+=team; n+= 阅读全文
posted @ 2021-02-23 11:08 友伯树 阅读(590) 评论(0) 推荐(0)