Study Anytime Any Where We Will Open The Knowledge For You Anish Sir 24x7 Learning solution It Is Time to join JOB
22 September 2019

Study Anytime Any Where

22 September 2019

We Will Open The Knowledge For You

22 September 2019

Anish Sir 24x7 Learning solution

22 September 2019

It Is Time to join JOB

C Programming

C++ Programming

JAVA Programming

Android Language


.Net Programming


c# Programming


Asp .Net


PHP Programming


Search Your Topic



Check whether a number is an Automorphic number or not

Write a Java program check whether a number is an Automorphic number or not.

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.

Test Data
Input a number : 76 

Java Code:

import java.util.Scanner;
public class Example14 {

public static void main(String args[])
Scanner sc = new Scanner(;
System.out.print("Input a number : ");
int num = sc.nextInt();
int sq_num = num*num;

String str_num = Integer.toString(num);
String square = Integer.toString(sq_num);

System.out.println("Automorphic Number.");
System.out.println("Not an Automorphic Number.");

Sample Output:

Input a number : 76

Automorphic Number.

Anish Sir


Anytime, Anywhere. Study online or in the classroom.

Want to become a Certified IT Training? We provide hands-on practical training on the latest tools, techniques and methods of software development & Website designing. 42 Hours Lectures. Get trained by Anish sir himself. 20,000+ students already trained. Learn online on the Internet from anywhere. Weekday & Weekend Batches Available. Limited Seats. Register Online or call us at +91 7488347779 (Mon to Sat 9 AM – 6 PM).