Description
Read the three integers, and output them on the right side by one integer with 8 characters.
Input
There are only one line, including three intestines, and separate between an integer.
OUTPUT
There is only one line that outputs three integers in turn according to the requirements of the format, and is separated by a space.
Input Sample
123456789 0 - 1
OUTPUT SAMPLE
123456789 0 - 1
source
Exercise (2-6)
idea
Read with scanf or cin and output with Printf or COUT.
Answer
CPP
include
include
using namespace std;
int Main ()
{{
int a, b, c;
cin >> a >> b >> c;
Printf (" %8d %8d %8d", a, b, c);
Return 0;
}
Result
Used Memory: 200KB
Run time: 5ms
Language: G ++
Submit time: 2019-03-24 08:54:24
Proplem Link
[http://noi.openjudge.cn/ch0101/03/03/.
OpenJudge 03:Align output
Comments