string x = "6";x = x.Replace("6", "4");Console.WriteLine(x); - C#