Saturday, March 28, 2020

URI 2748:: SOLUTION

URI Online Judge | 2748

Output 2

Your teacher would like to make a screen with the following characteristics:
  1. Have 39 dashes (-) on the first line;
  2. 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;
  3. Have a | below the first dash and the thirty-ninth dash of the first line, fill in the middle with whitespace;
  4. 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;
  5. Repeat procedure 3;
  6. 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;
  7. Repeat procedure 1.
At the end should look like the following image:

--------------------------------------- (39 traces)
|        Roberto                      |
|                                     |
|        5786                         |
|                                     |
|        UNIFEI                       |
--------------------------------------- (39 traces)

Input

There is not.

Output

The output will be printed as shown above.
Input SampleOutput 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