[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思路:注意事项:代码的准确度。参考代码:#include<stdio.h>int main(){ long int x; int sum=0,a; int m=0,n=0,v=0,c=0; sca…… 题解列表 2019年04月24日 0 点赞 0 评论 433 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用数组来储存数注意事项:只适用5位数参考代码:#include<stdio.h>main(){int i,m,n=0,s,k;int a[6];printf("请输入一个5位数\n");s…… 题解列表 2018年04月05日 5 点赞 0 评论 609 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num = 0; cin >> num; s…… 题解列表 2024年01月23日 0 点赞 0 评论 121 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:思路如下: 首先判断位数以及取个位数的值,然后按要求输出。 ```c #include int main(int argc, char *argv[]) { int a,b,ws=1,…… 题解列表 2020年04月28日 0 点赞 0 评论 391 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:用求余和求商来逐渐得到各位数字,然后存在数组中,方便提取。注意事项:参考代码:#include<stdio.h>int main(){ int n[5]; int num,i…… 题解列表 2018年02月06日 0 点赞 0 评论 538 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:定义一个整形数组 整形指针数组 把数组元素的地址分别赋给整形指针数组注意事项:参考代码:#include<stdio.h>#define N 5int main(void){ in…… 题解列表 2017年09月21日 0 点赞 0 评论 707 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:输入数据用列表保存,位数是列表长度,然后顺序及逆序输出列表。参考代码:lis=list(map(int,input())) a=len(lis) print(len(lis)) for…… 题解列表 2023年03月28日 0 点赞 0 评论 87 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:#include int main() { int a,b=0,c[10],i=0; scanf("%d",&a); while(a) { c[i++]=a%10; b…… 题解列表 2019年07月23日 0 点赞 0 评论 405 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:# 小白瞎写的代码 ### 本来是想好好写,结果写着写着一直报错。 #### 勿喷 ##### 代码如下: ``` #include int main() { int n,cnt=0…… 题解列表 2020年02月11日 0 点赞 0 评论 207 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a; cin >> a; cout <<…… 题解列表 2021年04月12日 0 点赞 0 评论 106 浏览 评分:0.0