Write a program to print a rectangle with diamond shape gap exactly at the center of the rectangle using a n input string with odd numbers of character not exceeding 20.
Example:
INPUT: HAPPY-HAPPY
OUTPUT:
HAPPY-HAPPY
HAPPY HAPPY
HAPP APPY
HAP PPY
HA PY
A Y
HA PY
HAP PPY
HAPP APPY
HAPPY HAPPY
HAPPY-HAPPY
Have something to say? Log in to comment on this post.
0 comments