Explore
ProGrad Programs
About Us

Edit
Reply




Edit

Check whether a number is Automorphic number or not | FACE Prep

Published on 10 Mar 2020

Program to check whether a number is Automorphic number or not is discussed here. An automorphic number is a number whose square ends with the number itself.

For example, 5 is an automorphic number, 5*5 =25. The last digit is 5 which same as the given number. It has only a positive single digit number. If the number is not valid, it should display "Invalid input".

If it is an automorphic number display Automorphic Number else display Not Automorphic Number.


Input & Output format:


Input consist of an integer.


Sample Input :


7


Sample Output :


Not Automorphic Number


Flow chart to check whether a number is automorphic number or not

automorphic number or not

Program to check whether the number is automorphic or not is given below


C
C++
Java
Python 3

Output
7
Not Automorphic


Recommended Programs










If you have any feedback about this article and want to improve this, please write to enquiry@faceprep.in
Explore 'c'
Articles