Wrong output for the code

I tried to implement the code as said in the video but i am getting the wrong out, can you please correct me sir

Here’s the ide of the code

cin>>n,c;
here it should be cin>>n>>c;
change this and u will get correct o/p

hi @swaroop_stellar
is it clear now??

yes sir
i got it done
thank you

1 Like

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.