1040我的才是好的C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float x;scanf("%f",&x); printf("%6.2f\n%6.2f %6.2f\n%6.…… 题解列表 2021年11月05日 0 点赞 0 评论 160 浏览 评分:0.0
1040: [编程入门]实数的打印 标题-题解(python) 摘要:解题思路:注意事项:参考代码:a = float(input())print('{:6.2f}'.format(a))print('{:6.2f} {:6.2f}'.f…… 题解列表 2021年10月14日 0 点赞 0 评论 197 浏览 评分:0.0
代码还是很简单的!!!! 摘要:解题思路 题目要求用6.2f的格式,意思就是用占位符 %6.2f 的形式来输出 &nbs 题解列表 2021年09月05日 0 点赞 0 评论 213 浏览 评分:0.0
float数字scanf的时候是%f,double是%lf 摘要:解题思路:注意事项:float数字scanf的时候是%f,double是%lf参考代码:#define _CRT_SECURE_NO_DEPRECATE#pragma warning(disable:…… 题解列表 2021年08月29日 0 点赞 0 评论 280 浏览 评分:0.0
这道题能有多难??? 摘要:解题思路:注意事项:参考代码:int main(){float i;scanf("%f",&i);printf("%6.2f\n",i);printf("%6.2f %6.2f\n",i,i);pri…… 题解列表 2021年08月22日 0 点赞 0 评论 195 浏览 评分:2.0
1040: [编程入门]实数的打印 AC代码 摘要:```cpp #include using namespace std; int main() { cout n; cout …… 题解列表 2021年08月21日 0 点赞 0 评论 651 浏览 评分:9.9
输出实数,利用for循环 摘要:解题思路: 每个输出都一样,所以令其循环输出 printf("%6.2f ", x) 即可,虽然在这道题中显得有些多余 但在需要大量输出的地方还是比较简单的注意事项…… 题解列表 2021年08月13日 0 点赞 0 评论 222 浏览 评分:0.0
题解 1040: [编程入门]实数的打印(最简单最方便的方法) 摘要:package ACM01; import java.util.Scanner; public class acm035 { public static void main(Str…… 题解列表 2021年07月20日 0 点赞 0 评论 273 浏览 评分:0.0
1040: [编程入门]实数的打印(C语言) 摘要:解题思路:很基础,用双循环就可以搞定注意事项:看清楚题目的输入和输出对应的位置和空格,简单来说就是认真审题。参考代码:#include<stdio.h> int main() { floa…… 题解列表 2021年05月23日 0 点赞 0 评论 157 浏览 评分:0.0
编写题解 1040: [编程入门]实数的打印 摘要:解题思路:注意事项:换行的操作不可忘参考代码:#include<stdio.h>int main(){ float n; int i,j; scanf("%f",&n); for(i=1;i<=3;i…… 题解列表 2021年04月24日 0 点赞 0 评论 260 浏览 评分:0.0