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
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
Hindi,
6 months ago
Political Science,
6 months ago
Hindi,
1 year ago
Science,
1 year ago
Science,
1 year ago