Convertir un número hexadecimal a octal
public class Program { public static void Main(string[] args) { Console.WriteLine("Hexadecimal to Octal conversion"); Console.Write("Enter the Hexadecimal number : "); string hex = Console.ReadLine(); string oct = Convert.ToString(Convert.ToInt32(hex, 16), 8); Console.Write("Hexadecimal to Octal conversion: {0}", oct); Console.ReadLine(); } }