+ 2
How do I organize digits of a int number in C++?
How can I organize the digits of a number, for example, organize the number 2835 in 2358 or 8532 ??
3 Respuestas
+ 4
Please refer to this thread:
https://www.sololearn.com/Discuss/1293686/?ref=app
+ 3
First, convert to string, then sort them
+ 2
Thanks guys, I got it :)
https://code.sololearn.com/cHcN7QY1WI0t/?ref=app