1009(C语言代码) 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b; scanf("%d",&a); a=a%100000; b=a; int coun…… 题解列表 2023年08月24日 0 点赞 0 评论 215 浏览 评分:9.9
数字处理代码 摘要:解题思路:给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123注意事项:参考代码:#include<stdio.h>int…… 题解列表 2023年07月05日 0 点赞 0 评论 210 浏览 评分:9.9
数字的处理与判断(不用字符数组的解法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/*给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各…… 题解列表 2023年07月04日 0 点赞 0 评论 254 浏览 评分:0.0
小白的想法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,n=0; scanf("%d",&a); int g=a,d=a; …… 题解列表 2023年06月24日 0 点赞 0 评论 215 浏览 评分:0.0
题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:获取数字位数(int ws(int) 实现)获取每一位的数字(int *part(int) 实现)按要求输出(主函数实现)注意事项:A.floor()向下舍入,至于作用,自行实验!B.注意题…… 题解列表 2023年06月22日 0 点赞 0 评论 503 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<cmath>int main(){ int num = 0; int tem…… 题解列表 2023年06月18日 0 点赞 0 评论 163 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路注意事项:参考代码:#include<stdio.h>int main(void){ int a; int w, q, b, s, g;//分别为万、千、百、十、个 scan…… 题解列表 2023年05月21日 0 点赞 0 评论 235 浏览 评分:0.0
数字处理与判断1099 摘要:解题思路:将输入的整数变为字符串,用<string.h>里的strlen()计算该字符串的位数; 2.用for循环输出单个字符;注意事项:for循环中的循环次数=strle…… 题解列表 2023年05月16日 0 点赞 0 评论 189 浏览 评分:0.0
随便想的用自定义函数的解法 摘要:解题思路:注意事项:参考代码:void p(int z) { if (z < 10) printf("%d", z); else { printf("%d", z % 10)…… 题解列表 2023年05月09日 0 点赞 0 评论 159 浏览 评分:0.0
1009题: 数字的处理与判断 摘要:# 自己写的代码 ```c #include #include int main() { char a[5]; gets(a); int len=strlen(a); p…… 题解列表 2023年04月25日 0 点赞 0 评论 662 浏览 评分:0.0