摘要: #include <stdio.h>int main() //最大公约数和最小公倍数 { int a,b,i,min,max; scanf("%d%d",&a,&b); max = 1; for(i=2;i<=a;i++) { if(a%i==0 && b%i==0) max = i; } min 阅读全文
posted @ 2016-10-09 20:44 袁韬淳160809310 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<time.h> int main(){ printf("请猜一个整数\n你的猜测是:"); int predefined=rand()%100; int a; scanf("%d",&a); int b; for 阅读全文
posted @ 2016-10-09 20:43 袁韬淳160809310 阅读(101) 评论(0) 推荐(0) 编辑