class looplessauto
{
public static void main(int n)
{
String nm=""+n;int c=nm.length();
c=(n*n)%(int)(Math.pow(10,c));
if(c==n)
System.out.println("Automorphic");
else
System.out.println("Non Automorphic");
}
}
{
public static void main(int n)
{
String nm=""+n;int c=nm.length();
c=(n*n)%(int)(Math.pow(10,c));
if(c==n)
System.out.println("Automorphic");
else
System.out.println("Non Automorphic");
}
}

Comments (0)
Post a Comment