Neon Number is that number whose sum of digits of its square is equal to the original number. For e.g  9

Steps to check Neon number in C

  1. Take a number as input.
  2. Square the number.
  3. Extract the square’s digits and add all of them.
  4. Check if the sum of digits of square is equal to original number or not.
  5. If yes then the number is Neon, else it is not.
Neon Number Test

Neon Number in C

Check Whether a number is neon or not
Neon Number Program Output

If you have any confusion regarding program code then comment below.

Leave a Reply