+ 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 :?

20th Oct 2018, 2:29 PM
Maz SYR
Maz SYR - avatar
4 Antworten
+ 2
Wow thank you 😻🙃 Using arrays and predefined stuff made me forget the basics of programming
20th Oct 2018, 3:52 PM
Maz SYR
Maz SYR - avatar
0
21st Oct 2018, 10:05 PM
Michal
Michal - avatar