Computer Science, asked by gokul1410, 1 year ago

write a java program to accept a number and check whether the given number is a neon number or not using BufferedReader class​

Answers

Answered by fouzaan86
0

Answer:

Write a Java program to check neon number

int square=num*num; int sum=0; while(square!=0)//Loop to find the sum of digits. The number is entered through Scanner class and then its square is taken by multiplying the number 2 times.After that we find the sum of digits of the square and check if the number is equal to the sum of digits of square of the number.

Explanation:

Similar questions