+ 1
Find the reverse of number
i have this assignment question that i can't come up with anyway to solve it.... the question is: Find the reverse of a n(any number of digits) digit number. e.g: if number is 12345, u need to print 54321. and it must be printed as one digit and not separately. Hint: make use of / and % operators we can't use arrays cz we didn't take them yet in uni. Its in java btw, but if u can come up with the concept of how to do it in other language like python, i might be able to convert it to java :?
4 Antworten
+ 2
Wow thank you 😻🙃
Using arrays and predefined stuff made me forget the basics of programming
0
You can try to do it like this
https://code.sololearn.com/cx6bCed9Oge1/?ref=app