当前位置:网站首页>%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;
}
边栏推荐
猜你喜欢
Lombok使用引发的血案
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
Redis sentinel mode realizes one master, two slave and three Sentinels
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
C1 certification learning notes 3 -- Web Foundation
.Net 应用考虑x64生成
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
這幾年爆火的智能物聯網(AIoT),到底前景如何?
Unity脚本生命周期 Day02
随机推荐
Numpy notes
Preliminary exploration of flask: WSGI
科研漫画 | 联系到被试后还需要做什么?
Width and alignment
小数,指数
Redis 解决事务冲突之乐观锁和悲观锁
[book club issue 13] coding format of video files
重排数组
When synchronized encounters this thing, there is a big hole, pay attention!
C1 certification learning notes 3 -- Web Foundation
They are all talking about Devops. Do you really understand it?
MySQL学习笔记——数据类型(2)
开源人张亮的 17 年成长路线,热爱才能坚持
十六进制
Deep learning neural network case (handwritten digit recognition)
MySQL federated primary key_ MySQL creates a federated primary key [easy to understand]
基于MAX31865的温度控制系统
js平铺数据查找叶子节点
Common API day03 of unity script
Shell programming basics