Neon,Strong,Perfect Number coding

java dev.to

Neon Number What is Neon number ? 9 => 81 9 neon number : There are only three neon numbers in the range of 0 to 100,000: 0, 1, and 9. Python no = int(input("enter a neon number to check : ")) sqr= no*no def neon(sqr): SumOfNum=0 while sqr>0: SumOfNum = sqr%10 + SumOfNum sqr=sqr//10 return SumOfNum if no==neon(sqr): print("its a neon") else : print("not neon") java import java.util.Scanner; public class NeonNumber

Read Full Tutorial open_in_new
arrow_back Back to Tutorials