Write a C program to reverse a number using loops and modulus. Learn the logic, code, and explanation for reversing an integer in C.