+ 2
Help needed with hex part in c++
I made the code to accept any binary input to convert to octal and hexadecimal but it seems the hexadecimal outputs 0, But when I comment the octal part out it gives me a correct hexadecimal number. LInk to code: https://code.sololearn.com/c8a6A25a0a15
5 odpowiedzi
+ 2
As Jazz said, your problem is with the bn
If you add another varible for the second loop it works well
https://code.sololearn.com/cnEZIYPAGyN8/?ref=app
0
Thank you guys