Q. WAP to accept any number and check the number is neon or not

Example:
Input Number- 9
c=9^2=81
c=8+1=9
Input value & calculated value both are same, the 9 is a neon number.
  • Enter a number:
  • The number is: