Jeanne Boyarsky wrote:The loop in your if statement and your else statement look exactly the same to me. I think you intended to reverse one.
I am using this in if condition
This is working as expected. I just get this working by debugging again and again. But to me, this seems bit complicated. Do you have any other simple way of doing the same.
And also i am bit confused about putting *. If i am adding it before printing the letter,it will add at the start of each line. And same with printing after the letter, it will append at the end of each line. How to achieve the desired output.