当前位置:网站首页>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;
}边栏推荐
- PLC Analog input analog conversion FC s_ ITR (CoDeSys platform)
- 浮点数如何与0进行比较?
- 炒股网上开户安全吗?会不会被骗。
- Summary of common problems in development
- A keepalived high availability accident made me learn it again
- %s格式符
- leecode学习笔记-约瑟夫问题
- C language book rental management system
- LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
- C1 certification learning notes 3 -- Web Foundation
猜你喜欢

Deep learning network regularization

深度学习 神经网络案例(手写数字识别)

Why do domestic mobile phone users choose iPhone when changing a mobile phone?

Leecode learning notes - Joseph problem

Quick introduction to automatic control principle + understanding

LVGL 8.2 Draw label with gradient color

如何配和弦

How to match chords

Wt588f02b-8s (c006_03) single chip voice IC scheme enables smart doorbell design to reduce cost and increase efficiency

Ali was laid off employees, looking for a job n day, headhunters came bad news
随机推荐
Summary of common problems in development
微博、虎牙挺进兴趣社区:同行不同路
Free, easy-to-use, powerful lightweight note taking software evaluation: drafts, apple memo, flomo, keep, flowus, agenda, sidenote, workflow
Helix Swarm中文包发布,Perforce进一步提升中国用户体验
Guitar Pro 8win10 latest guitar learning / score / creation
C language small commodity management system
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
LVGL 8.2 Line
重排数组
从0到1建设智能灰度数据体系:以vivo游戏中心为例
局部修改-渐进型开发
Memory management summary
LVGL 8.2 Line wrap, recoloring and scrolling
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Leecode learning notes - Joseph problem
输入宽度!
韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
【C语言】指针笔试题
5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television