string

CF

String Stairs Pattern

The program must accept a string S containing only alphabets as the input. The program must print the string S…