1040: [编程入门]实数的打印 标题-题解(python) 摘要:解题思路:注意事项:参考代码:a = float(input())print('{:6.2f}'.format(a))print('{:6.2f} {:6.2f}'.f…… 题解列表 2021年10月14日 0 点赞 0 评论 197 浏览 评分:0.0
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 评论 161 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ float num; //定义数字,类型为 float 题解列表 2021年11月10日 0 点赞 0 评论 142 浏览 评分:0.0
实数的打印 摘要:解题思路:主要是理解”6.2f“格式,这是个占位符,f表示float类型,6表示输出的数字占六位,数字向右靠齐。2表示精确到小数点后两位。注意事项:不要忘了“用空格分隔同一行的数字"这一要求参考代码:…… 题解列表 2021年11月14日 0 点赞 0 评论 353 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2021年11月17日 0 点赞 0 评论 441 浏览 评分:0.0
实数的打印 c语言 摘要:解题思路:这个和打印hello world 我用的一个思路,目的达到了,答案可能不妥注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f"…… 题解列表 2021年12月04日 0 点赞 0 评论 189 浏览 评分:0.0
编写题解 1040: [编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double e; cin>>e; for(int …… 题解列表 2021年12月09日 0 点赞 0 评论 179 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main() { cout << setiosflags(ios::f…… 题解列表 2021年12月21日 0 点赞 0 评论 165 浏览 评分:0.0
C++代码用C++风格输出%6.2f格式的浮点数 摘要:解题思路:用C++风格输出%6.2f格式的浮点数https://blog.csdn.net/jal517486222/article/details/84591515注意事项:暂时不明参考代码:#in…… 题解列表 2021年12月28日 1 点赞 0 评论 497 浏览 评分:0.0
【C语言】简单的输出 摘要:解题思路: 直接按照题目需求输出就行了 不过有一个需要注意的地方:就是数字之前除了占位符的空隙外,还有一个空格参考代码: 简单的输出:#include<stdio.h…… 题解列表 2022年02月07日 0 点赞 0 评论 166 浏览 评分:0.0