static class StringHelper
public static string ReverseString(string myStr)
char[] myArr = myStr.ToCharArray();
return new string(myArr);
static void Main(string[] args)
Console.WriteLine("Enter the Binary number you want to convert to a Dezimal Number.");
string bin = Console.ReadLine();
bin = StringHelper.ReverseString(bin);
double rech2 = Math.Pow(rech1, hoch);
Console.Write("Dezimal:" + erg);