三进制小数 (C语言代码) 摘要:解题思路:三进制转换与二进制类似,三进制小数的转换是乘以3,取整,然后顺序输出即可。注意的是最后一位要四舍五入哦。 ```c #include #include int main() {…… 题解列表 2018年10月25日 0 点赞 0 评论 993 浏览 评分:9.9
C二级辅导-温度转换 (C语言代码) 摘要:#include "stdafx.h"int main(){ double c, f; scanf("%lf", &f); c = (f - 32)*5.0 / 9.0; printf("%.2lf"…… 题解列表 2018年10月25日 0 点赞 0 评论 506 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:#include "stdafx.h"int main(){ int n,a[1000],t,i=0; scanf("%d", &n); do { t = n % 8; a[i++] = t; …… 题解列表 2018年10月25日 0 点赞 0 评论 483 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C语言代码) 摘要:#include "stdafx.h"#define max 1000#define number 3int main(){ int n,i; int a[max] = { 0 }, flag = 0…… 题解列表 2018年10月25日 0 点赞 0 评论 482 浏览 评分:0.0
十->二进制转换 (C语言代码) 摘要:解题思路:十进制转换为二进制是除2取余倒置法,注意把每一个余数转换为字符放到字符数组中即可。注意事项:注意负数的处理方法,以及0的处理方法。参考代码:#include<stdio.h> #inclu…… 题解列表 2018年10月25日 0 点赞 0 评论 1175 浏览 评分:9.9
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>int function(int n){ int a1; …… 题解列表 2018年10月25日 0 点赞 0 评论 470 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.11 (C语言代码) 摘要:#include<stdio.h>#include "math.h"int main(){ double x1,x2,a; scanf("%lf",&a); x1=1; do …… 题解列表 2018年10月24日 0 点赞 0 评论 484 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.11 (C语言代码) 摘要:#include<stdio.h>#define max 100int main(){ int N,i,j,t,x,k; int a[max]={0}; scanf("%d",&N)…… 题解列表 2018年10月24日 0 点赞 0 评论 525 浏览 评分:0.0
蓝桥杯算法提高VIP-彩票 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n, num, i, x, j; int a[8]={0}, b[8]={0}; num …… 题解列表 2018年10月24日 0 点赞 0 评论 586 浏览 评分:0.0
【密码】 (C语言代码) 摘要:解题思路:先判断字符串是否大于等于8而且小于等于16,如果不是,则表示密码不安全,后面的就不用继续判断了。然后再判断每一种字符是否出现,如果第一次出现,则count++,以后再出现,就不加了。然后判断…… 题解列表 2018年10月24日 1 点赞 0 评论 557 浏览 评分:0.0