How to check whether a number is automorphic or palindrome in java?
Answers
Answered by
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
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