Saturday, March 28, 2020

URI 2749:: SOLUTION

URI Online Judge | 2749

Output 3

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 2nd dash you should start typing "x = 35" and the rest fill in with whitespace;
  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 17th dash you should start typing "x = 35" and the rest fill in with whitespace;
  5. Repeat procedure 3;
  6. Have a | under the first dash and the thirty-ninth dash of the first line, under the 33rd dash you should start typing "x = 35" and the rest fill in the middle with whitespace;
  7. Repeat procedure 1.
At the end should look like the following image:

--------------------------------------- (39 dashes)
|x = 35                               |
|                                     |
|                x = 35               |
|                                     |
|                               x = 35|
--------------------------------------- (39 dashes)

Input

There is not.

Output

The output will be printed as shown above.
Input SampleOutput Sample
---------------------------------------
|x = 35                               |
|                                     |
|                x = 35               |
|                                     |
|                               x = 35|
---------------------------------------



[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