1.

Write a menu driven java program to input a number from the user and check whether the number is an automorphic number or not.

Answer»

ong>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.



Discussion

No Comment Found