Add one more space after each new line

How would you do this?
User input a word, after pressing [ENTER] I want to make a new line before each letter and add one more “space” before each letter.

It kinda looks like stairs.

Pls help.jpg

Source: c++

1 Comment

  1. devansh trivedi

    Add whitespace at every iteration before scanf()
    Hint: Try getc()


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.