Help with bug detection

prob: https://hack.codingblocks.com/app/contests/1975/446/problem

sol: https://ide.codingblocks.com/s/388620

why is the char array not being printed?

Hey @raghav007

You can’t input char array like that
Directly use cin>>ch;

	// char cha = cin.get();
	// while(ch[i]!='\0'){
	// 	ch[i] = cha;
	// 	i++;
	// 	cha=cin.get();
	// } you cant input like this 
    cin>>ch;

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.