会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
字子初
导航
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
2
2018年9月21日
正三角乘法表1
摘要: #include<stdio.h>int main(){ int n,m; for(n = 1;n <= 9; n++) { for(m = 1;m<= n;m++){ printf("%d*%d=%-4d",m,n,m*n); } printf("\n"); } return 0; }
阅读全文
posted @ 2018-09-21 14:52 字子初
阅读(188)
评论(0)
推荐(0)
乘法表0
摘要: #include<stdio.h>int main(){ int n,m; for(n = 1;n <= 9; n++) { for(m = 1;m<= 9;m++){ printf("%d*%d=%-4d",m,n,m*n); } printf("\n"); } return 0; }
阅读全文
posted @ 2018-09-21 14:51 字子初
阅读(132)
评论(0)
推荐(0)
2018年9月20日
猜随机数字
摘要: #include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ int magic; //计算机随机生成的数 int guess; //人猜的数 int counter;//记录猜的次数 char reply; srand(time(NU
阅读全文
posted @ 2018-09-20 22:45 字子初
阅读(229)
评论(0)
推荐(0)
猜随机数游戏,猜对为止
摘要: #include<stdio.h>#include<stdlib.h>#include<math.h>int main(){ int magic; //计算机随机生成的数 int guess; //人猜的数 int counter;//记录猜的次数 magic = rand() % 100 + 1;
阅读全文
posted @ 2018-09-20 22:18 字子初
阅读(470)
评论(0)
推荐(0)
猜随机游戏,只让猜一次
摘要: #include<stdio.h>#include<stdlib.h>#include<math.h>int main(){ int magic; //计算机随机生成的数 int guess; //人猜的数 magic = rand() % 100 + 1; //1到100的随机数 printf("
阅读全文
posted @ 2018-09-20 22:11 字子初
阅读(209)
评论(0)
推荐(0)
猴子吃桃问题1
摘要: #include<stdio.h>int main(){ int x = 1,d = 10; while(d>1){ x = (x+1)*2; d--; } printf("x=%d",x); return 0;}
阅读全文
posted @ 2018-09-20 20:04 字子初
阅读(126)
评论(0)
推荐(0)
猴子吃桃问题
摘要: #include<stdio.h>int main(){ int x = 1,d = 1; while(d<10){ x = (x + 1)*2; d++; } printf("x=%d",x); return 0;}
阅读全文
posted @ 2018-09-20 19:58 字子初
阅读(184)
评论(0)
推荐(0)
MongoDB查看已有集合
摘要: show collections runoob system.indexes
阅读全文
posted @ 2018-09-20 13:20 字子初
阅读(18006)
评论(0)
推荐(0)
上一页
1
2