当前位置:网站首页>Width and alignment
Width and alignment
2022-07-04 15:04:00 【Zaltana】
Output 455,-123,987654, Width is 5, Align left and right respectively
Format
Input format : nothing
Output format : The output is an integer , The blank space to separate . The output of each number occupies one line
Examples
Input : nothing
Output :455 455
-123 -123
987654 987654
#include<bits/stdc++.h>
using namespace std;
int main( )
{
printf("%-5d %5d\n" ,455,455);
printf("%-5d %5d\n" ,-123,-123);
printf("%-5d %5d\n" , 987654 , 987654);
return 0;
}
边栏推荐
- 如何搭建一支搞垮公司的技术团队?
- flutter 报错 No MediaQuery widget ancestor found.
- 【大连理工大学】考研初试复试资料分享
- Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
- UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
- I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
- Flutter reports an error no mediaquery widget ancestor found
- LVGL 8.2 text shadow
- Alcohol driving monitoring system based on stm32+ Huawei cloud IOT design
- 力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
猜你喜欢
numpy笔记
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
Combined with case: the usage of the lowest API (processfunction) in Flink framework
flutter 报错 No MediaQuery widget ancestor found.
Introduction to modern control theory + understanding
C1 certification learning notes 3 -- Web Foundation
开源人张亮的 17 年成长路线,热爱才能坚持
Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
10. (map data) offline terrain data processing (for cesium)
近一亿美元失窃,Horizon跨链桥被攻击事件分析
随机推荐
LVGL 8.2 Line wrap, recoloring and scrolling
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
LVGL 8.2 Draw label with gradient color
Halo effect - who says that those with light on their heads are heroes
Is it safe to open an account online for stock speculation? Will you be cheated.
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
flutter 报错 No MediaQuery widget ancestor found.
I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
炒股网上开户安全吗?会不会被骗。
Classify boost libraries by function
selenium 元素交互
Comment configurer un accord
Ffprobe common commands
Red envelope activity design in e-commerce system
Summary of common problems in development
Redis 發布和訂閱
What are the concepts of union, intersection, difference and complement?
%s格式符
十六进制
Xcode abnormal pictures cause IPA packet size problems