C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:用字符串来解题,将整数的每一位看成字符注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[5]; …… 题解列表 2017年11月19日 0 点赞 0 评论 799 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,t=0,k,n,i=0,aa[5]; scanf("%d",&a); k=a; …… 题解列表 2017年11月28日 0 点赞 0 评论 886 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)(笨办法) 摘要:解题思路:注意事项:循环之后a的值改变了,用b作为中间值代替。一个新手的笨办法。。。参考代码:#include<stdio.h>int main(){ int a,b,i; i=0; …… 题解列表 2017年12月04日 2 点赞 1 评论 638 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b,c,d,e; //abcde is five bit integer in…… 题解列表 2017年12月05日 0 点赞 0 评论 1187 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:取余的办法很麻烦,这里我的思路是采用字符数组进行存储,这样即使位数多余5位也可以实现题目的要求。注意事项:参考代码:#include <stdio.h>char a[100];int mai…… 题解列表 2017年12月05日 0 点赞 0 评论 897 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:逐步求余即可注意事项:参考代码:#include <stdio.h>int main (){ int a,b; scanf("%d", &a); if (a-10>=-10&&a-1…… 题解列表 2017年12月11日 1 点赞 0 评论 1098 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,c,d,e,m; scanf_s("%d", &i); while (i / 10000 <…… 题解列表 2017年12月15日 0 点赞 0 评论 901 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:其它题解都是垃圾!!!!注意事项:参考代码:#include<stdio.h>int main(){ int a[6],n,i,j,s=0; scanf("%d",&n); …… 题解列表 2017年12月16日 0 点赞 0 评论 903 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int i = 0,n = 0,num = 5,a[5…… 题解列表 2018年03月12日 25 点赞 1 评论 1470 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:先判断出位数,再求出每一位上的数字,然后按照要求进行输出即可注意事项:主要注意最后一位输出时不能带空格参考代码:#include<stdio.h>int main(){ int a[6…… 题解列表 2017年12月19日 0 点赞 0 评论 959 浏览 评分:0.0