decimal to hexa and binary
plz tell why the hell that question mark symbol is coming before hexa in output.like input 23 then number in hexa will show ?17. https://code.sololearn.com/c8cql1kkNvq6/?ref=app
now this is right code: https://code.sololearn.com/chDEz1Ok9Z1I/?ref=app
Line 19: Decrease <y> before loop begins. <y> was one char ahead. Did you know we can print numbers in hexadecimal by using %x format specifier? Your binary result was not corect also because of similar issue, you need to decrease <x> before loop begins.
Ipang thanks bro u are awesome
Ipang is there any format specifier for binary bro
No bro, not that I know of ...
Looks like its typecasting the int as a char, formatting should help
there is little error Ipang in your answer.only by putting x-- in starting of loop we cant get right output.see the right code i have written. thanks man for answering.