C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:参考代码:#include <stdio.h> int main(){ int n; int count=0,i,a[5]; scanf("%d",&n); if (n…… 题解列表 2017年08月24日 1 点赞 0 评论 1535 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用我们前面刚学到的表达式和选择结构,先分别得出各位数字 ,然后安要求输出。注意事项:这样写时代码效率不高, 但是没有BUG。参考代码:#include <stdio.h>#include …… 题解列表 2017年09月06日 0 点赞 0 评论 1530 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:把数字转化为字符串的形式,更便于进行数字位数的判断,所以我引用了str函数注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2017年10月17日 0 点赞 0 评论 955 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:虽然比较笨的方法 但是思路很明确 确定了大小 之后用简单的公式 求出来单独数字就ok注意事项:参考代码:#include"stdio.h"int main(){ int a,b,c,d,…… 题解列表 2018年03月30日 0 点赞 0 评论 989 浏览 评分:2.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2019年08月09日 0 点赞 0 评论 960 浏览 评分:2.0
数字的处理与判断 摘要:```python while True: try: a = list(map(int, input())) b = a[-1: -7: -1] print(len(a)) …… 题解列表 2023年01月31日 0 点赞 0 评论 508 浏览 评分:2.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; int b=a;…… 题解列表 2025年09月16日 1 点赞 0 评论 681 浏览 评分:2.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:include include include using namespace std; int main(){ int a; cin>>a; if(a>=10000) { cou…… 题解列表 2020年01月29日 0 点赞 0 评论 831 浏览 评分:4.0
刷题记录2025/12/17 1009: [编程入门]数字的处理与判断 摘要:我太菜了注意事项:参考代码:#include<stdio.h>int main(){ int n; int a,b,c,d,e; scanf("%d",&n);…… 题解列表 2025年12月17日 7 点赞 0 评论 628 浏览 评分:4.0
七行代码解决问题 摘要:解题思路:用字符串解决问题注意事项:无参考代码:a=input()print(len(a))for i in range(len(a)): print(a[i],end=" ")print()fo…… 题解列表 2024年12月03日 0 点赞 0 评论 1367 浏览 评分:4.8