This is my code.I am not able to form the correct code. Pls tell the correct code.
Can you ead this problem
hey @yutikakhanna just run a for loop upto 2nd last element(i<s.size()-1) and start printing every chararcter by cout<<s[i] and after printing check if next element s[i+1] isupper or not if next element is upper then only give a line break(cout<<endl) then atlast print the last element of the string(s[s.size()-1]) outside for loop;
i am unable to form the code
i am unable to form the code.can you explain through a code.
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.
why this doubt comes under live doubts section if it is already resolved…
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.