#include<stdio.h>
#include<math.h>
int reverse(int num)
{
int digit = (int) log10(num);
if(num == 0)
return 0;
return ((num%10 * pow(10, digit)) + reverse(num/10));
}
int main(){
int num=34;
printf ("%d",reverse(num));
}
To embed this project on your website, copy the following code and paste it into your website's HTML: