Find and write the output of the following C++ program code:
Note : Assume all required header files are already included in the program.
void strpat(char *str) { for(int i=0;str[i]>0;i++) { for(int j=0;j<=i;j++) { cout<<str[j]; } cout<<endl; } } int main( ) { char *t="CBSE"; strpat(t); return 0; }