+ 2

Why am i getting wrong output in my hexadecimal to decimal calculator?

input:1CF outpt:207 correct output : 463 https://code.sololearn.com/cjS6grncMQtU/?ref=app

25th Nov 2020, 4:20 PM
Ankit Sharma
Ankit Sharma - avatar
3 Antworten
+ 2
In loop condition use i>=0 instead of i>0
25th Nov 2020, 4:57 PM
Jayakrishna 🇮🇳
0
Thnx done!!
26th Nov 2020, 6:24 AM
Ankit Sharma
Ankit Sharma - avatar