- 6
- 0
- 约2.09万字
- 约 98页
- 2016-11-26 发布于湖北
- 举报
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #include stdio.h void main() {int a,temp,temp1,count=0; printf(Input a interger :); scanf(%d,a); for (temp=5;temp=a;temp+=5) {temp1=temp; while ((temp1%5==0)(temp1!=0)) {count++; temp1=temp1/5; } } printf(The number of 0 in the end of %d!is :%d\n,a,count); } 借书方案:小明有五本新书,要借给A,B,C三个小朋友,若每人每次只能借一本,则要以有多少种不同的借法? #include stdio.h void main() {int a,b,c,count=0; printf(There are different methods for XM to distribute booksto 3 readers:\n); for (a=1;a=5;a++) for (b=1;b=5;b++) for (c=1
原创力文档

文档评论(0)