C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用我们前面刚学到的表达式和选择结构,先分别得出各位数字 ,然后安要求输出。注意事项:这样写时代码效率不高, 但是没有BUG。参考代码:#include <stdio.h>#include …… 题解列表 2017年09月06日 0 点赞 0 评论 1247 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:把数字转化为字符串的形式,更便于进行数字位数的判断,所以我引用了str函数注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2017年10月17日 0 点赞 0 评论 805 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:虽然比较笨的方法 但是思路很明确 确定了大小 之后用简单的公式 求出来单独数字就ok注意事项:参考代码:#include"stdio.h"int main(){ int a,b,c,d,…… 题解列表 2018年03月30日 0 点赞 0 评论 775 浏览 评分:2.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2019年08月09日 0 点赞 0 评论 710 浏览 评分:2.0
数字的处理与判断 摘要:```python while True: try: a = list(map(int, input())) b = a[-1: -7: -1] print(len(a)) …… 题解列表 2023年01月31日 0 点赞 0 评论 352 浏览 评分:2.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; int b=a;…… 题解列表 2025年09月16日 1 点赞 0 评论 347 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:#include<stdio.h>int main(){ int sun,sum,i,j,k,n,m,c; scanf("%d",&sun); if(sun<10) { …… 题解列表 2017年06月07日 1 点赞 1 评论 1027 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:#include "stdio.h"int main(){ int a,i,j=0,b[6],t=10,k,f=10000; scanf("%d",&a); i=a; while(i…… 题解列表 2017年06月15日 1 点赞 0 评论 1002 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:#include<stdio.h> #include<string.h> int main() { char a[40]; int b,e,f; int *c; …… 题解列表 2017年06月30日 1 点赞 0 评论 1499 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:输入数为n第一行输出为 i第二行输出为 数组a[5]第三行输出为m注意事项:在VC下编译是成功的,但在网上编译失败,大家可以参考,同时也请大神指出我编译错误的原因。参考代码:#include…… 题解列表 2017年07月12日 0 点赞 1 评论 526 浏览 评分:0.0