public void ShowResult() { Console.WriteLine("In octal: " + octNumber); Console.WriteLine("In decimal: " + octalToDecimal()); string Result = octalToDecimal(); DecimalSystem dec = new DecimalSystem(Result); Console.WriteLine(dec.DecimalToBinary()); Console.WriteLine(dec.DecimalToHex()); }
public void ShowResult() { Console.WriteLine("In hexadecimal: " + hexNumber); Console.WriteLine("In decimal: " + HexToDec()); double result = HexToDec(); DecimalSystem decimalSystem = new DecimalSystem(result.ToString()); Console.WriteLine(decimalSystem.DecimalToBinary()); Console.WriteLine(decimalSystem.DecimalToOctal()); }