+ 1
how can we Remove a particular char form a string which is given by user
2 Réponses
+ 3
After you received user input as a string, you could use string.remove method to remove char from string:
https://docs.microsoft.com/en-us/dotnet/api/system.string.remove?view=net-5.0
+ 3
You can optionally, replace all the specified character in the said string by an empty string to get rid of their presence.
https://docs.microsoft.com/en-us/dotnet/api/system.string.replace