Write a class Automorphic to check
whether a number is Automorphic or
not using function with the help of
a method
Int digit(int n)
11:00 PM
Answers
Answered by
1
Answer:
1.Take a number as input (num).
2.Square the number (sqr).
3.Count the number of digits of (num) using while loop (c).
4.Compare the last (c) digits of (sqr) with the (num).
5.If they are equal then the number is Automorphic else not.
Similar questions