public void ShowResults()
        {
            Console.WriteLine("In octal: " + number);
            Console.WriteLine("In decimal: " + octalToDecimal());
            string         Result = octalToDecimal();
            DecimalSystems dec    = new DecimalSystems(Result);

            Console.WriteLine(dec.DecimalToBinary());
            Console.WriteLine(dec.DecimalToHexa());
        }
Beispiel #2
0
        public void ShowResults()
        {
            Console.WriteLine("In hexadecimal: " + userInput);
            Console.WriteLine("In decimal: " + HexToDec());
            double         result         = HexToDec();
            DecimalSystems decimalSystems = new DecimalSystems(result.ToString());

            Console.WriteLine(decimalSystems.DecimalToBinary());
            Console.WriteLine(decimalSystems.DecimalToOctal());
        }