会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Cathycat
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
下一页
2019年7月24日
随机数
摘要: #include<time.h>srand((unsigned)time(NULL));a=rand();
阅读全文
posted @ 2019-07-24 19:37 Cathycat
阅读(103)
评论(0)
推荐(0)
2019年7月23日
质数
摘要: #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
阅读(149)
评论(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
阅读(114)
评论(0)
推荐(0)
2019年7月21日
失败
摘要: #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
阅读(118)
评论(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
阅读(111)
评论(0)
推荐(0)
2019.7.21记录
摘要: 尝试着去做了一下同学推荐的题,完全不会. 果然我还是太菜了. 仍然沉浸在他太受欢迎和我太差的悲哀中 不匹配啊
阅读全文
posted @ 2019-07-21 21:21 Cathycat
阅读(117)
评论(0)
推荐(0)
2019年7月18日
9*9乘法表
摘要: #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
阅读(197)
评论(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
阅读(152)
评论(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
阅读(202)
评论(0)
推荐(0)
!
摘要: 是不是无法识别1<=n<=30
阅读全文
posted @ 2019-07-18 20:50 Cathycat
阅读(85)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告