1811:浮点数专题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a; scanf("%lf", &a); printf("%f\n", a); …… 题解列表 2024年01月19日 0 点赞 0 评论 727 浏览 评分:0.0
2758:打印ASC11码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf("%d\n",a); re…… 题解列表 2024年01月19日 0 点赞 0 评论 620 浏览 评分:0.0
2757:浮点数向零舍入 摘要:注意事项:参考代码:#include<stdio.h>int main(){ float a = 0; scanf("%f",&a); int b = 0; b = a; …… 题解列表 2024年01月19日 2 点赞 0 评论 871 浏览 评分:10.0
向上递增单次尾部循环公式求和 摘要:解题思路:构造一函数调用自身,每次调用保存上次计算的结果,每一项an都在增加,故多设一参数保存an项注意事项:循环的结束条件应与递增方向相关参考代码:/*求Sn=a+aa+aaa+…+aa…aaa(有…… 题解列表 2024年01月19日 0 点赞 0 评论 517 浏览 评分:0.0
2749:计算并联电阻的阻值 摘要:解题思路:注意事项:参考代码:int main(){ float r1 = 0 , r2 = 0 , R; scanf("%f %f", &r1, &r2); R = 1 / (1 …… 题解列表 2024年01月19日 1 点赞 0 评论 598 浏览 评分:0.0
1056:温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); float y; y = (5.0/9.0…… 题解列表 2024年01月19日 0 点赞 0 评论 473 浏览 评分:0.0
计算多项式的值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double x, a, b, c, d; scanf("%lf %lf %lf %lf %lf"…… 题解列表 2024年01月19日 0 点赞 0 评论 677 浏览 评分:0.0
2846: 统计数字字符个数,使用scanf和fgets的方式实现 摘要:解题思路:1)如果输入字符串,我们可以根据其结尾的'\0'代表是否输入完成注意事项:2)可以使用scanf,配合字符集匹配来完成,[ ]: 方括号表示一个字符类,它匹配方括号内的任意一…… 题解列表 2024年01月19日 0 点赞 0 评论 841 浏览 评分:0.0
题解 2824: 求出e的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,e=1,num=0; cin…… 题解列表 2024年01月19日 0 点赞 0 评论 586 浏览 评分:10.0
C语言-计算2的幂 摘要:解题思路:循环结构,n个2相乘注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int n,s=1; scanf("%d",&…… 题解列表 2024年01月18日 0 点赞 0 评论 519 浏览 评分:0.0