I am looking for the C program for reverse the digits like below:
C
If i enter:
123456
Then the result would
use the power function.
while(count>=1) { var = num % 10; sum = sum + var * pow(10, count - 1); num =num / 10; count--; }