Given a string, print a staircase pattern where the first line contains the first character, the second line contains the first two characters, and so on, until the full string is printed.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.