04 2019 档案

摘要:#include<stdio.h>int main(void){ int m,n,p,q; scanf("%d%d",&m,&n); p=m*n; while(n!=0){ q=m%n; m=n; n=q;} printf("最大公约数=%d\n",m); printf("最小公倍数=%d\n",p 阅读全文
posted @ 2019-04-16 21:32 马晓静 阅读(118) 评论(0) 推荐(0)
摘要:#include<stdio.h>int main(void){ int x,y,z,w; printf("Enter x,y"); scanf("%d%d",&x,&y); if(x<=3) z=10; else if(x>3&&x<=13) z=2*x+4; else z=3*x-9; if(y 阅读全文
posted @ 2019-04-10 17:56 马晓静 阅读(165) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2019-04-01 21:07 马晓静 阅读(88) 评论(0) 推荐(0)