Computer Science, asked by debsneha1234, 8 months ago

How to check whether a number is automorphic or palindrome in java?​

Answers

Answered by TrimaxSteel
0

Answer:

Steps to Check Automorphic Number in Java

Take a number as input (num).

Square the number (sqr).

Count the number of digits of (num) using while loop (c).

Compare the last (c) digits of (sqr) with the (num).

If they are equal then the number is Automorphic else not.

Answered by adeshjha777
0

Answer:

Steps to Check Automorphic Number in Java

Take a number as input (num).

Square the number (sqr).

Count the number of digits of (num) using while loop (c).

Compare the last (c) digits of (sqr) with the (num).

If they are equal then the number is Automorphic else not.

Similar questions