1009(C语言代码)
摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b; scanf("%d",&a); a=a%100000; b=a; int coun……
编写题解 1009: [编程入门]数字的处理与判断
摘要:解题思路:利用strlen函数求出数组有效大小,即数字位数。再利用swich选择语句根据不同位数来进行输出注意事项:注意加上头文件#include<string.h>#include<iostream……
[编程入门]数字的处理与判断
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10000) printf("%d\n",5);……
数字的处理与判断(java代码)--循环和条件的应用
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main (String[] arg……
数字的处理与判断(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e; scanf("%d",&x); a=x/10000; ……
数字的处理与判断(c语言)递归和循环
摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10……
正确的递归应该是啥样的?。。。
摘要:参考代码:#include<iostream>
using namespace std;
void print1(int a);
void print2(int a);
int main(……