r/C_Homework • u/THEACE565 • Jan 08 '19
"Joseph"
My teacher wants this, Enter your name: Joseph //example
Your name is Joseph Joseph Josep Jose Jos Jo J
Total honesty, my teacher didnt teach us how to make this pattern using answers from users. Can anyone help me?
1
Upvotes
View all comments
Show parent comment
1
u/THEACE565 Jan 09 '19 edited Jan 09 '19
Thank you so much, I was able to figure out how to do it, but the only for a limited given number of letters, for example: Userinput.substr(0, 7) up to (0,1), I cant go any further, and if a enter a input that is less than 7 its going to print again and again until it reaches (0,1)