def display(str):
for i in range(len(str)):
for j in range(len(str)):
if i==j or i+j==len(str)-1:print str[j],
if j==len(str)-1:print
else:print" ",
str=raw_input()
display(str)
Input:
Program
Output:
P m
r a
o r
g
o r
r a
P m
0 comments:
Post a Comment