public static void Main()
Console.WriteLine("enter the string:");
String sInput = Console.ReadLine();
Console.WriteLine("Enter the char to remove:");
char cRemove = Console.ReadKey().KeyChar;
Console.WriteLine("Final String:" + ufnRemoveChar(sInput, cRemove));
static String ufnRemoveChar(String str, char toremove){
char[] cTemp = str.ToCharArray();
for(int counter = 0 ; counter < cTemp.Length ; counter++)
if(cTemp[counter] != toremove)
result += cTemp[counter];