Parallelogram Words
Write a program which will ask as input a word (no more than 7 characters). It will then produce the patterns shown below. These are known as parallelogram words due to the shape they produce.
Looking at the word “hello” we would print
4 spaces and a h
3 spaces and then he
2 spaces and then hel
1 space and then hell
no spaces and then hello
no spaces and then ello
no spaces and then llo
no spaces and then lo
no spaces and then o
h
he
hel
hell
hello
ello
llo
lo
o
T TE TES TEST EST ST T
S
SA
SAM
SAMP
SAMPL
SAMPLE
AMPLE
MPLE
PLE
LE
E

You need to log in or create an account to submit code!











