hey guys,
im working on an extra credit assignment for my computer science class. what i need to do is ask the user for a word, then the word is output is the Shape of an hour glass, for example if the word FRED is input, the output would look like:
FFF
R
E
DDD
if Chicken is input, the output would look like:
CCCCCCC
HHHHH
III
C
KKK
EEEEE
NNNNNNN
my code now just subtracts 2 letters from the output everytime a new character is found, then when it reaches 1, it does it the opposite way. there in lays a problem with even numbers...
Any help would be greatly appreciated.
thanks,
Yubie



LinkBack URL
About LinkBacks



