This site contain programs of different languages including Sitecore, C,C++, Visual Basic, Java and e books related programming. you can view,share and post your comments.
#include<stdio.h> main() { int a,b,rev=0,temp; printf("enter your number: "); scanf("%d",&a); temp=a; while(a>0) { b=a%10; rev=rev*10+b; a=a/10; } printf("\nreverse of %d is %d",temp,rev); }
No comments:
Post a Comment