/* http://native-code.blogspot.com */ #include<stdio.h> #include<conio.h> void main() { int x,y,s=0; printf("/* http://native-code.blogspot.com */\n\n\n\t Enter a positive number..."); scanf("%d",&x); while(x>0) { y=x%10; s=(s*10)+y; x=x/10; } printf("\n\n\t Reverse number is= %d",s); getch(); } /* http://native-code.blogspot.com */
Post a Comment