+ 4
How to reverse it?
I'm trying to give binary number as an output but output is reverse of what's correct https://code.sololearn.com/c8YH8HYl6OqE/?ref=app
5 Antworten
+ 2
Zexu Knub
Please try this code.. I have just modified a little bit..
https://code.sololearn.com/cT0q7P436VQ6/?ref=app
+ 2
Don't print them in the inner while loop.. store them in the char array and then reverse it.
+ 1
Zexu Knub you are welcome.
0
Akash Saha i edited the code but it's still giving the wrong output ( garbage values) except for 1
0
Akash Saha thanks for the help