Replace all pi problem


what am I doing wrong?

hi @akshitabansal321 the very first thing is u r missing == in line 4 as u wrote = (may try now)
second thing is u are using string not char array so if u are using string u need to push back elements which u are removing and adding 3.14 in that place, ive shared a code where what u r doing can be done by char array easily

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.