0
I need help converting hexadecimal characters to decimal characters in c#
I have an assignment at school to make a program that can convert individual hexadecimal characters to individual decimal characters, meaning like ABF would be converted to 10 11 15. I have no idea how to do this, can anyone help?
2 Respostas
+ 4
Iterate through every character of your hex string (maybe a for-loop is useful), then use a switch statement to print 10 if you get an A, 11 if it's a B...