I am currently making a program that converts a hexadecimal number to an octal number. I have it so it can recognize letters out of the sequence, but what would be the best way of getting it to identify an int out of the sequence of letters and numbers?
example of Hex: A5F6C
example of Octal: 07453
I was thinking an if statement but at the same time on my basic knowledge
if (char he7 == int)
does not work
note: he7 would be a char placement of 7 on a hex number