0

How can i erase a character from a string & replace that with a new character?

Suppose, i have to take a string as an input from user & he type "specialised". I want the output as sp#ci@lis#d. How can i do this?

3rd May 2020, 6:15 AM
Ashfaq Reshad
Ashfaq Reshad - avatar
2 Respuestas
+ 3
Put it in a loop and search for that specific character and replace with new character. Built in functions can differ according to which language you are using
3rd May 2020, 6:23 AM
sid
sid - avatar
3rd May 2020, 6:31 AM
Hatsy Rei
Hatsy Rei - avatar