+ 11

How can i reverse the output of the following code for making it binary representation?

https://code.sololearn.com/ctO1J0oL2Hiw/?ref=app

18th Jul 2023, 10:36 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
11 Respostas
+ 5
Koli First store the output in an array or a string and then print it in reverse order. See this I modified your code.. https://code.sololearn.com/c59K52xoUPik/?ref=app
18th Jul 2023, 1:03 PM
Darpan kesharwani🇼🇳[Inactive📚]
Darpan kesharwani🇼🇳[Inactive📚] - avatar
+ 5
Save and output in reverse order.
18th Jul 2023, 10:43 AM
JaScript
JaScript - avatar
+ 4
Thanks! sis you are great 👍. Really helpfull! 👍
18th Jul 2023, 1:06 PM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 4
Koli your welcome, & happy to help:)👍
18th Jul 2023, 1:10 PM
Darpan kesharwani🇼🇳[Inactive📚]
Darpan kesharwani🇼🇳[Inactive📚] - avatar
+ 3
I want to amend my code in this way that the output will be reverse of current output. Like when I input with a number 20.it outputs 00101. But I want reverse of it i.e 10100.
18th Jul 2023, 10:45 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 2
Rrss Ttt your question is unrelated to this topic. Please start a new Q&A post and ask your question there.
19th Jul 2023, 6:05 AM
Brian
Brian - avatar
+ 2
Just Incase you want to know about c++11 iterators, I've reversed the string in one line by doing some modifications to Darpan kesharwani code https://code.sololearn.com/c3un78P8XIyx/?ref=app
20th Jul 2023, 9:54 PM
RuntimeTerror
RuntimeTerror - avatar
21st Jul 2023, 9:22 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
21st Aug 2023, 10:53 AM
7á«ášášáŽŻáŽ· Ꮇ~áƒáŽŹáŽ„á
7á«ášášáŽŻáŽ· Ꮇ~áƒáŽŹáŽ„á - avatar
0
what is the difference pass by value and pass by refference?
18th Jul 2023, 4:54 PM
Rrss Ttt
Rrss Ttt - avatar