URI Online Judge | 2748
Output 2
Your teacher would like to make a screen with the following characteristics:
- Have 39 dashes (-) on the first line;
- Have a | underneath the first dash and the thirty-ninth dash of the first line, below the dash should begin to write the word "Roberto" and the rest fill in the middle with white space;
- Have a | below the first dash and the thirty-ninth dash of the first line, fill in the middle with whitespace;
- Have a | below the first dash and the thirty-ninth dash of the first line, below the 10 dash you should begin to type the number "5786" and the rest fill in the middle with whitespace;
- Repeat procedure 3;
- Have a | underneath the first dash and the thirty-ninth dash of the first line, below the dash 10 should begin to write the word "UNIFEI" and the rest fill in the middle with white space;
- Repeat procedure 1.
At the end should look like the following image:
--------------------------------------- (39 traces)
| Roberto |
| |
| 5786 |
| |
| UNIFEI |
--------------------------------------- (39 traces)
| Roberto |
| |
| 5786 |
| |
| UNIFEI |
--------------------------------------- (39 traces)
Input
There is not.
Output
The output will be printed as shown above.
| Input Sample | Output Sample |
| --------------------------------------- | Roberto | | | | 5786 | | | | UNIFEI | --------------------------------------- |
[WAIT]
First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....
See the ANSWER here...
No comments:
Post a Comment