A number is said to be Automorphic number if its square ends in the same
digits as the number itself.
e.g.
5 and 25 appear at the end of their squares 25 and 625 respectively. Hence,
they are automorphic numbers.
Write a program to accept a number. Pass it to a function that returns the
same number of digits from its square as many digits are available in the
argument. Finally display a message whether the number is an automorphic
number or not.
Answers
Answered by
0
Explanation:
In mathematics, an automorphic number is a number whose square "ends" in the same digits as the number itself. For example, 52 = 25, 62 = 36, 762 = 5776, and 8906252 = 793212890625, so 5, 6, 76 and 890625 are all automorphic numbers. Sample Output: Input a number : 76 Automorphic Number.
Similar questions
Social Sciences,
4 months ago
India Languages,
4 months ago
Social Sciences,
4 months ago
English,
8 months ago
English,
8 months ago
English,
1 year ago
Math,
1 year ago