Adam Number in Java | ICSE and ISC

Опубликовано: 28 Февраль 2025
на канале: Knowledge Circle
3,362
236

A number is called an Adam number if the square of a number and the square of its reverse are reverse to each other. Let's understand it through an example.

Adam Number Example
Consider a number (N) 12 and check it is an Adam number or not.

Square of the number (N) = 144

The reverse of the number (N) = 21

Square of the reverse of the number (N) = 441

We observe that the square of 12 and the square of its reverse i.e. 21 are reverse of each other. Hence, 12 is an Adam number.

Some other Adam numbers are 0, 1, 2, 3, 11, 12, 13, 21, 22, 31, 101, 102, 103, 111, etc.

#adamnumberinjava
#javaprogramming
#icsecomputerapplication
#isccomputerscience
#icsecomputerapplication
#isccomputerscience
#recursioninjava