不用数组的方式 就是麻烦一点 摘要:参考代码:#include<stdio.h>int main(){ int x=0; int i=0; int g=0; int b=0; int t=0; int a,y,n,o=0; scanf…… 题解列表 2022年02月22日 0 点赞 0 评论 245 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ long int a,tem…… 题解列表 2022年03月04日 0 点赞 0 评论 277 浏览 评分:0.0
如何用for循环解决数字的处理与判断 摘要:解题思路:很简单,相信各位程序员们看完代码一目了然!注意事项:for循环和数组的使用参考代码:#include <iostream>using namespace std;int main(){ in…… 题解列表 2022年03月13日 0 点赞 0 评论 370 浏览 评分:0.0
数字的处理与判断(C语言) 摘要:解题思路:先尝试把每一位数分离出来,剩下就容易了注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,n,place; scanf("%d",&n)…… 题解列表 2022年03月27日 0 点赞 0 评论 487 浏览 评分:0.0
字符串的输出 摘要:解题思路:注意事项:参考代码:n=input()print(len(n))for i in n: print(i,end=' ')print()print(n[::-1])…… 题解列表 2022年04月06日 0 点赞 0 评论 229 浏览 评分:0.0
二级C语言-数字的处理与判断 摘要:解题思路:n%qy/cs该方法可以求到每个位上的数值,用数组存值本代码可以算任何小于五位的数,正、负、0;都可以,虽不是最简,但应该是最全,希望各位朋友指导。注意事项:参考代码:#include<st…… 题解列表 2022年04月10日 0 点赞 0 评论 393 浏览 评分:0.0
数字的处理与判断(C语言解答) 摘要:解题思路:首先如果用int去定义数组,那么输入的时候会出现1 2 3 4 5这样的输入情况,所以这里用的是char,字符数组输入,后面再用count判断他是几位数。注意事项:主要注意的是换行问题,我第…… 题解列表 2022年04月11日 0 点赞 0 评论 476 浏览 评分:0.0
1009[编程入门]数字的处理与判断-不简洁但很明了(C语言) 摘要:解题思路:仅使用if-else判断选择的笨办法注意事项:参考代码:#include<stdio.h>int main(){ int a,b,d; int c1,c2,c3,c4,c5; …… 题解列表 2022年04月12日 0 点赞 0 评论 228 浏览 评分:0.0
非常普通的小白解法。。。 摘要:解题思路:注意事项:for循环内count[]内的值和i的起始值需要注意,数组从count[0]开始。所以代码内后两个for循环条件略有不同。参考代码:#include<stdio.h>int mai…… 题解列表 2022年04月13日 0 点赞 0 评论 316 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char u[6]; int i=0,len; gets(u); len=s…… 题解列表 2022年04月16日 0 点赞 0 评论 307 浏览 评分:0.0