{"id":17339,"date":"2021-08-26T10:42:40","date_gmt":"2021-08-26T05:12:40","guid":{"rendered":"https:\/\/python-programs.com\/?p=17339"},"modified":"2021-11-22T18:37:11","modified_gmt":"2021-11-22T13:07:11","slug":"python-program-to-check-automorphic-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-automorphic-number-or-not\/","title":{"rendered":"Python Program to Check Automorphic Number or Not"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Convert each Character in a String to an ASCII Value.<\/a>
\nAutomorphic Number:<\/strong><\/p>\n

An automorphic number is one whose square has the same digits as the original number. Examples: 5, 25, 76,\u00a0 and so on.<\/p>\n

Example :<\/p>\n

let N= 6<\/p>\n

N square = 6*6 = 36<\/p>\n

The last digit is the same as the given number. Therefore 6 is an automorphic number.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 625<\/pre>\n

Output:<\/strong><\/p>\n

The given number 625 is an Automorphic Number<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 200<\/pre>\n

Output:<\/strong><\/p>\n

The given number 200 is not an Automorphic Number<\/pre>\n

Program to Check Automorphic Number or Not<\/h2>\n

Below are the ways to check the automorphic number or not.<\/p>\n