public static void Main()
Console.Write("Enter Value in Decimal: ");
int value = Convert.ToInt32(Console.ReadLine());
string dec = value.ToString();
string bin = (Convert.ToString(value, 2));
string octal = (Convert.ToString(value, 8));
string hex = (Convert.ToString(value, 16));
Console.Write("Decimal: " + dec + "\n" +
"Binary: " + bin + "\n" +
"Octal: " + octal + "\n" +