**New course!**Every coder should learn

**Generative AI!**

+ 2

# How can I get the remainder Without using the modulo?

How can I reverse the number without using modulo example: enter number: 123 the reverse is: 321 PLEASE I NEED IT THANKS IN ADVANCE

6 Answers

+ 2

Maybe by converting it to a string, reversing it and converting it back to int ?
Also, you can use this formula for the remainder.
Dividend = Divisor*Quotient + Remainder.

+ 2

Remainder = Dividend - Divisor*Quotient.
Use this formula. You can get the Quotient by flooring the result of (Dividend/Divisor).

+ 1

whats the logic behind the modulo?

+ 1

The formula I posted above, it seems.

+ 1

how can I get the remainder without using the modulo???

+ 1

thankyou so much Kinshuk! 👏👏👏