摘要: #include<time.h>srand((unsigned)time(NULL));a=rand(); 阅读全文
posted @ 2019-07-24 19:37 Cathycat 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include <math.h>int main (){ int y,n,a,b,c,x; scanf("%d",&n); a=2; c=1; while(c<=n) { b=0; y=2; int x=sqrt(a); whi 阅读全文
posted @ 2019-07-23 22:24 Cathycat 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ int a,b,sum; srand((unsigned)time(NULL)); a=rand()%100; sum=7; while(1) { sum--; scanf( 阅读全文
posted @ 2019-07-23 22:22 Cathycat 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>int main (){ int x,y,n,a,b,c; scanf("%d,&n"); while(c<n) { y=2; c=1; for(a=2;a<=y;a++) { b=0; if(y%a==0) { b++; } } 阅读全文
posted @ 2019-07-21 22:26 Cathycat 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>int main (){ int a,x; int i=0; scanf("%d",&a); for(x=2;x<a;x++) { if(a%x==0) { i++; printf("%d\n",x);// 打印所有约数 } } 阅读全文
posted @ 2019-07-21 21:22 Cathycat 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 尝试着去做了一下同学推荐的题,完全不会. 果然我还是太菜了. 仍然沉浸在他太受欢迎和我太差的悲哀中 不匹配啊 阅读全文
posted @ 2019-07-21 21:21 Cathycat 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<windows.h>int main(){ int a,b,c; for(a=1;a<10;a++) { for(b=1;b<10;b++) { c=a*b; printf("%.2d ",c); } print 阅读全文
posted @ 2019-07-18 22:13 Cathycat 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<windows.h>int main(){ int a,b; a=1; while(a<=100) { system("cls"); b=1; while(b<=a) { printf(" "); b=b+1; 阅读全文
posted @ 2019-07-18 21:13 Cathycat 阅读(137) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<windows.h>int main(){ int a,b; a=1; while(a<=100) { b=1; system("cls"); while(b<=a) { printf(" "); b=b+1; 阅读全文
posted @ 2019-07-18 21:01 Cathycat 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 是不是无法识别1<=n<=30 阅读全文
posted @ 2019-07-18 20:50 Cathycat 阅读(80) 评论(0) 推荐(0) 编辑