text: Here we are generating a new number ( reverse_num ) * by reversing the digits of original input number
code: temp = num ; while ( temp != 0 ) { remainder = temp % 10 ; reverse_num = reverse_num * 10 + remainder ; temp /= 10 ; }