+ 2

What is spy number & neon number anyone know then please explain me

2nd Jul 2017, 1:14 AM
Irwin Lopez
Irwin Lopez - avatar
5 Answers
+ 1
only the 9 is the neon number ah there is any other number
31st Jan 2018, 2:46 PM
selvapriya.N.S
selvapriya.N.S - avatar
+ 1
There are only 2 neon numbers i.e. 1 and 9. Java program is import java.util.*; public class NeonNumber { public static void main(String args[]) { Scanner ob=new Scanner(System.in); System.out.println("Enter the number to be checked."); int num=ob.nextInt(); int square=num*num; int sum=0; while(square!=0)//Loop to find the sum of digits. { int a=square%10; sum=sum+a; square=square/10; } if(sum==num) { System.out.println(num+" is a Neon Number."); } else { System.out.println(num+" is not a Neon Number."); } } }
7th Feb 2018, 11:40 AM
Sharnav's Tech
Sharnav's Tech - avatar
0
I understand the spy number but I had not understand the neon number. Can you send me the java program of neon number to knows better.
2nd Jul 2017, 1:54 AM
Irwin Lopez
Irwin Lopez - avatar
0
Superb
17th Dec 2018, 5:02 PM
selvapriya.N.S
selvapriya.N.S - avatar