Thursday, March 8, 2012

Program to reverse the entered no .

//Program to reverse the entered no .
#include<stdio.h>
#include<conio.h>
main()
{ int d,r,n;
 printf("Enter no:");
 scanf("%d",&n);
 d=n;
do
 {
  r=d%10;
  printf("%d",r);
  d=d/10;

}while(d!=0);
getch();
}

No comments:

Post a Comment