Hi frnds
I am having some kind of problem in strings.. I have to write a String program whose output is like this
Let the string is :-
Enter string : "Computer Programming"
C
Co
Com
Comp
Compu
Comput
Compute
Computer
Computer P
Computer Pr
Computer Pro
Computer Prog
Computer Progr
Computer Progra
Computer Program
Computer Programm
Computer Programmi
Computer Programmin
Computer Programming
I Have tried much to make this program but not successful..Can anyone help me. Thank you
If you want to print a triangle out of user input like that, you'll have to print strings char by char. This is just two nested for loops. One, i = 1 to strlen(input), and another, j = 0 to i.