How to delete last character from output by \b

How to delete last character from output by \b.
I m trying but online cb ide is giving me unexpected output??

hello @codingblockscpp
try some other way , because \b might give different output on different compilers.

can you suggest me?? I just want to know ?? I have solved the problem but just for curosity i am asking ??
my solu : https://ide.codingblocks.com/s/248864

one simple suggestion i can give is to store ur output in string and then print only what u want.

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.