当前位置:网站首页>%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;
}
边栏推荐
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
- When synchronized encounters this thing, there is a big hole, pay attention!
- [book club issue 13] packaging format and coding format of audio files
- Redis的4种缓存模式分享
- They are all talking about Devops. Do you really understand it?
- unity update 协程_Unity 协程的原理
- Logstash~Logstash配置(logstash.yml)详解
- [differential privacy and data adaptability] differential privacy code implementation series (XIV)
- 十六进制
- 在芯片高度集成的今天,绝大多数都是CMOS器件
猜你喜欢
31年前的Beyond演唱会,是如何超清修复的?
Helix Swarm中文包发布,Perforce进一步提升中国用户体验
Techsmith Camtasia Studio 2022.0.2屏幕录制软件
Redis sentinel mode realizes one master, two slave and three Sentinels
flutter 报错 No MediaQuery widget ancestor found.
Helix swarm Chinese package is released, and perforce further improves the user experience in China
Redis 发布和订阅
AI做题水平已超过CS博士?
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
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?
随机推荐
Redis publier et s'abonner
Unity script API - transform transform
输入宽度!
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
进制乱炖
Understand the context in go language in an article
MySQL学习笔记——数据类型(2)
Unity prefab day04
%S format character
.Net 应用考虑x64生成
压力、焦虑还是抑郁? 正确诊断再治疗
[book club issue 13] packaging format and coding format of audio files
Helix swarm Chinese package is released, and perforce further improves the user experience in China
MySQL组合索引(多列索引)使用与优化案例详解
C1 certification learning notes 3 -- Web Foundation
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
AI做题水平已超过CS博士?
Lombok使用引发的血案
c# 实现定义一套中间SQL可以跨库执行的SQL语句
flutter 报错 No MediaQuery widget ancestor found.