human
Automorphic Number | Function to check Automorphic number.
Store the square.
Start Comparing digits.
Return false , if any digit of N doesn ' t ▁ ▁ match ▁ with ▁ its ▁ square ' s digits from last.
Reduce N and square.
Driver code"
Solution in Python:
 ... Write me a code to automorphic Number and the other steps required?
assistant
#Here is code to automorphic Number and the other steps required.
 def isAutomorphic ( N ) :
	sq = N * N
	while ( N > 0 ) :
		if ( N % 10 != sq % 10 ) :
			return False
		N /= 10
		sq /= 10
	return True
N = 5
if isAutomorphic ( N ) :
	print " Automorphic "
else :
	print " Not ▁ Automorphic "