public static void Main()
Console.WriteLine("Enter String");
var input = Console.ReadLine();
Console.WriteLine(revstr);
Console.WriteLine(input + " is a palindrome.");
Console.WriteLine(input + " is not a palindrome.");
Console.WriteLine("\nWhich letter would you like to replace in " + input + "?");
var c1 = Console.ReadLine();
Console.WriteLine("\nWhich letter would you like to replace it with?");
var c2 = Console.ReadLine();
Console.WriteLine(Rep(input,c1,c2));
public static string Rev(string str){
char[] strArr = str.ToCharArray();
return new string(strArr);
public static string Rep(string s,string c1,string c2){