+ 1
How to use remove all expression in c#. - lambda expression
if input is "hello world" the output should be "he wrd"
1 Antwort
0
I know one way, but pretty sure tere's an easier one:
string text = "Hello world";
char[] splittedText = text.CharToArray();
for (int i=0; i < splittedText.length; i++) {
if(splittedText[i] == 'l')
continue;
Console.Write(splittedText[i]);
}