读入三个整数,按每个整数占8个字符的宽度,右对齐输出它们。
123456789 0 -1
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; printf("%8d %8d %8d",a,b,c); return 0; }
001:对齐输出
原文:https://www.cnblogs.com/geyang/p/12327192.html