Math, asked by majesticmaha18, 11 months ago

Adam number,addition,mulitiplication of matrix

Answers

Answered by AshokShakthiKannan
1

Answer:

Given a number n, write a program to check whether given number is Adam Number or not.

Adam number is a number when reversed, the square of the number and the square of the reversed number should be numbers which are reverse of each other. Adam numbers upto 1000 are: 0, 1, 2, 3, 11, 12, 13, 21, 22, 31, 101, 102, 103, 111, 112 , 113, 121, 122, 201, 202, 211, 212, 221, 301, 311.

Examples :

Input : 12

Output : Adam Number

Explanation:

Square of 12 = 144

Reverse of 12 = 21

Square of 21 = 441

Now Square of 12 and square of reverse of 12 are

reverse of each other. Therefore 12 is Adam number.

Input : 14

Output : Not a Adam Number

Steps to find Adam number :

Step 1: Find square of number.

Step 2: Find reverse of number.

Step 3: Find square of number in Step 2.

Step 4: Find reverse of number in Step 3.

Step 5: Find whether number obtained in

Answered by megha2502
2

Answer:

Adam number is a number when reversed, the square of the number and the square of the reversed number should be numbers which are reverse of each other. Adam numbers upto 1000 are: 0, 1, 2, 3, 11, 12, 13, 21, 22, 31, 101, 102, 103, 111, 112 , 113, 121, 122, 201, 202, 211, 212, 221, 301, 311.

Similar questions