adam's number
what is adam's number
If the reverse square root of the reverse of square of a number is the number itself then it is Adam Number. 
For ex., 12 and 21 
Take 12 
square of 12 = 144 
reverse of square of 12 = 441 
square root of the reverse of square of 12 = 21 
The reverse square root of the reverse of square of 12 = 12, then number itself. 
Such number is called Adam Number. 


c program



/* To check whether a number is adam number or not */
#include
#include
void main()
{
int i,n,n1,n2,ns,r,rev=0,nr=0,nrs;
clrscr();
printf("Enter a no.n");
scanf("%d",&n);
ns=n;
n1=n*n;
n2=n1;
          while(n2>0)
          {
           r=n2%10;
           n2=n2/10;
           rev=rev*10+r;
           }
        while(ns>0)
       {
        r=ns%10;
       ns=ns/10;
       nr=nr*10+r;
       }
   nrs=nr*nr;
      if (rev==nrs)
        printf("%d is an adam no.n",n);
     else
        printf("%d is not an adam no.n",n);
     getch();
   }
}