当前位置:网站首页>%F format character
%F format character
2022-07-04 15:35:00 【Zaltana】
Enter a real number , Output as real for the first time ; Keep it for the second time 2 Decimal output ; Keep it for the third time 3 Decimal places but minimum column width 8 Column output , The blank space to separate .
Format
Input format : Enter real
Output format : Output real , The blank space to separate .
Examples
Input : 31331.14345435
Output : 31331.143454 31331.14 31331.143
#include<bits/stdc++.h>
using namespace std;
int main( )
{
double n;
scanf("%lf", &n);
printf("%lf %.2lf %8.3lf" ,n,n,n);
return 0;
}
边栏推荐
- AI做题水平已超过CS博士?
- Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
- Huawei cloud database DDS products are deeply enabled
- Redis publier et s'abonner
- 【大连理工大学】考研初试复试资料分享
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- Unity script API - time class
- Implementation of web chat room
- 【读书会第十三期】视频文件的编码格式
- Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
猜你喜欢

MYSQL索引优化

2022年九大CIO趋势和优先事项

这几年爆火的智能物联网(AIoT),到底前景如何?

科普达人丨一文看懂阿里云的秘密武器“神龙架构”

Preliminary exploration of flask: WSGI

Techsmith Camtasia Studio 2022.0.2屏幕录制软件

Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?

干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧

flutter 报错 No MediaQuery widget ancestor found.

Intelligent customer service track: Netease Qiyu and Weier technology play different ways
随机推荐
Guitar Pro 8win10 latest guitar learning / score / creation
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
[book club issue 13] packaging format and coding format of audio files
Unity script API - transform transform
大神详解开源 BUFF 增益攻略丨直播
c# 实现定义一套中间SQL可以跨库执行的SQL语句
Helix swarm Chinese package is released, and perforce further improves the user experience in China
LeetCode 58. 最后一个单词的长度
LeetCode 1184. Distance between bus stops -- vector clockwise and counterclockwise
js平铺数据查找叶子节点
Hexadecimal form
Preliminary exploration of flask: WSGI
Weibo and Huya advance into interest communities: different paths for peers
C1 certification learning notes 3 -- Web Foundation
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
2022年九大CIO趋势和优先事项
AI has surpassed Dr. CS in question making?
odoo数据库主控密码采用什么加密算法?
Unity脚本介绍 Day01