Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to find out the given number is automorphic or not using c

Critics Rating:

Users Rating:



/* PROGRAM TO FIND OUT THE GIVEN NUMBER IS AUTOMORPHIC OR NOT */



#include <stdio.h>

main()

{

int n;

clrscr();

puts("ENTER ANY NUMBER");

scanf("%d",&n);

if (n*n%10==n || n*n%100==n || n*n%1000==n)

puts("THIS IS AN AUTOMORPHIC NUMBER");

else

puts("THIS IS NOT AN AUTOMORPHIC NUMBER");

getch();

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.