当前位置:网站首页>左右对齐!
左右对齐!
2022-07-04 13:32:00 【Zaltana】
输出3.1415926,22.3456,宽度为14,精度为6,分别左对齐和右对齐。
格式
输入格式:无
输出格式:输出为实型,空格分隔。每个数的输出占一行。
样例
输入:无
输出:3.141593 3.141593
22.345600 22.345600
#include<bits/stdc++.h>
using namespace std;
int main( )
{
printf("%-14.6f %14.6f\n",3.1415926, 3.1415926);
printf("%-14.6f %14.6f",22.3456, 22.3456);
return 0;
}
边栏推荐
- 深度学习7 Transformer系列实例分割Mask2Former
- LVGL 8.2 Menu
- Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
- Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
- Combined with case: the usage of the lowest API (processfunction) in Flink framework
- 曝光一下阿里的工资待遇和职位级别
- [MySQL from introduction to proficiency] [advanced chapter] (IV) MySQL permission management and control
- 进制乱炖
- LVLG 8.2 circular scrolling animation of a label
- 毕业季-个人总结
猜你喜欢
Detailed explanation of visual studio debugging methods
LVGL 8.2 text shadow
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
Combined with case: the usage of the lowest API (processfunction) in Flink framework
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Memory management summary
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
[MySQL from introduction to proficiency] [advanced chapter] (IV) MySQL permission management and control
Why do domestic mobile phone users choose iPhone when changing a mobile phone?
They are all talking about Devops. Do you really understand it?
随机推荐
[C language] Pointer written test questions
Is BigDecimal safe to calculate the amount? Look at these five pits~~
Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
Alcohol driving monitoring system based on stm32+ Huawei cloud IOT design
如何配和弦
Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Introduction to modern control theory + understanding
Leecode learning notes - Joseph problem
Quick introduction to automatic control principle + understanding
LVGL 8.2 Line
03 storage system
Why do domestic mobile phone users choose iPhone when changing a mobile phone?
关于FPGA底层资源的细节问题
Preliminary exploration of flask: WSGI
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
阿里被裁员工,找工作第N天,猎头又传来噩耗...
Explain of SQL optimization
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Techsmith Camtasia Studio 2022.0.2屏幕录制软件