第七次作业

摘要: 1.在网上找到了两个版本,都用到了getchar。。。。。。。。getchar是什么鬼?QAQ泪流满面 求老师解答,啥他喵的是getchar啊?心塞塞 #include<stdio.h> int main() { int a[100]={0},i,j; char c; while((c=getcha 阅读全文
posted @ 2016-11-12 13:22 年糕不黏 阅读(133) 评论(1) 推荐(0) 编辑

第六次作业

摘要: #include<stdio.h> void fir() { printf("第一次作业\n"); printf("001\n");//求最大值 printf("002\n");//求m-n的和 printf("003\n");//求平均数 } void sec() { printf("第二次作业\ 阅读全文
posted @ 2016-11-04 11:31 年糕不黏 阅读(116) 评论(1) 推荐(0) 编辑

第五次作业

摘要: 三个数比大小 复制代码 #include<stdio.h> int main() { int a,b,c,temp; printf("请输入三个整数:\n"); scanf("%d %d %d",&a,&b,&c); {if(a>b>c) temp=a; a=c; c=temp; } { if(c> 阅读全文
posted @ 2016-10-28 21:42 年糕不黏 阅读(89) 评论(0) 推荐(0) 编辑

第四次作业

摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { printf("请输入数字:\n"); srand(time(0)); int a,n,i; a=rand()%100; scanf("%d",&n); for(i= 阅读全文
posted @ 2016-10-09 23:48 年糕不黏 阅读(85) 评论(3) 推荐(0) 编辑

第三次作业

摘要: 十行倒三角形 #include<stdio.h> int main(void) { printf("* * * * * * * * * *\n"); printf(" * * * * * * * * *\n"); printf(" * * * * * * * *\n"); printf(" * * 阅读全文
posted @ 2016-09-29 21:55 年糕不黏 阅读(135) 评论(1) 推荐(0) 编辑

第二次作业

摘要: 阅读全文
posted @ 2016-09-22 13:13 年糕不黏 阅读(91) 评论(1) 推荐(0) 编辑

高思梦的作业

摘要: 我是耿丹学院字16届计科3班的高思梦,来自东北,为人热情,热爱学习,有责任心,曾经在小学初中高中都担任班长,特长是会轮滑,有学习精神,热爱我的专业。 m到n的和 #include<stdio.h> int main() { int m,n; scanf("%d %d",&m,&n); int i=a 阅读全文
posted @ 2016-09-14 21:02 年糕不黏 阅读(175) 评论(3) 推荐(0) 编辑