Help please (I dont get it)
Hello, somehow the code below cant find the "Rechner" Method what im doing wrong? using System; using System.IO; using System.Xml; namespace hi { public class Rechnen { public static int Rechner(string num3, string num4) { bool success1 = int.TryParse(num3, out int endNumber1); bool success2 = int.TryParse(num4, out int endNumber2); if (success1) { if (success2) { try { int Ergebnis = endNumber1 / endNumber2; return Ergebnis; } catch (DivideByZeroException e) { Console.WriteLine(e.Message); return 0; } } else Console.WriteLine("num2 is false: {0}", num4); return 0; } else Console.WriteLine("num1 is false: {0}", num3); return 0; if (success2 == false) { Console.WriteLine("num2 is false: {0}", num4); return 0; } } } class Program { static void Main(string[] args) { try { Console.WriteLine("Enter a number: "); int num1 = int.Parse(Console.ReadLine()); Console.WriteLine("Enter another number: "); int num2 = int.Parse(Console.ReadLine()); Console.WriteLine(num1 / num2); } catch (DivideByZeroException e) { Console.WriteLine(e.Message); } catch (FormatException e) { Console.WriteLine(e.Message); } //the same agai