How to remove the second character from a string in C#

1 Answer

0 votes
using System; 
  
class Test 
{ 
    public static void Main() 
    { 
        string s = "c# programming version 7.3";
        
        s = s.Remove(1, 1);

        Console.Write(s); 
    }  
}


/*
run:

c programming version 7.3

*/

 



answered Feb 2, 2019 by avibootz

Related questions

1 answer 122 views
1 answer 65 views
1 answer 75 views
1 answer 62 views
1 answer 80 views
...