URI Online Judge Solution 2748 Output 2 Using Python Programming Language. At the end should look like the following image:
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.
--------------------------------------- (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 |
--------------------------------------- |
URI 2748 Solution in Python:
print("---------------------------------------")
print("| Roberto |")
print("| |")
print("| 5786 |")
print("| |")
print("| UNIFEI |")
print("---------------------------------------")
Comments
Post a Comment