题解 1009: [编程入门]数字的处理与判断
摘要:解题思路:获取数字位数(int ws(int) 实现)获取每一位的数字(int *part(int) 实现)按要求输出(主函数实现)注意事项:A.floor()向下舍入,至于作用,自行实验!B.注意题……
[编程入门]数字的处理与判断
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<cmath>int main(){ int num = 0; int tem……
编写题解 1009: [编程入门]数字的处理与判断
摘要:解题思路注意事项:参考代码:#include<stdio.h>int main(void){ int a; int w, q, b, s, g;//分别为万、千、百、十、个 scan……
数字处理与判断1099
摘要:解题思路:将输入的整数变为字符串,用<string.h>里的strlen()计算该字符串的位数; 2.用for循环输出单个字符;注意事项:for循环中的循环次数=strle……
随便想的用自定义函数的解法
摘要:解题思路:注意事项:参考代码:void p(int z)
{
if (z < 10)
printf("%d", z);
else
{
printf("%d", z % 10)……
1009题: 数字的处理与判断
摘要:# 自己写的代码
```c
#include
#include
int main()
{
char a[5];
gets(a);
int len=strlen(a);
p……
1009: [编程入门]数字的处理与判断<1>
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, num, a[5], count; scanf("%d",&n); if (……
数据的处理与判断(5位数以内)
摘要:解题思路:先求出数的位数,通过while循环求出,然后定义一个大小为5的数组,将每一位的数依次存入数组。最后根据不同要求,输出数组即可。注意事项:参考代码:#include<stdio.h>int m……