#include<stdio.h> void main() { int n,m,r; printf("\n Enter the number to reverse:"); scanf("%d",&n); m=n; printf("\n"); while(m>0) { r=m%10; m=m/10; printf("%d",r); } }
To embed this project on your website, copy the following code and paste it into your website's HTML: