21 hours of fun natural number

for ab & in Range (10,100 ): 
    A = 10 // ab & 
    B = 10% ab &
     IF ab & == (A + B) + (A * B):
         Print (ab &)     
 Print ( ' ******** * ' ) 
 for x in Range (10000 ): 
    n- = STR (x ** 2)    # is calculated within each product number 10000 
    m = STR (x)       # x to digital conversion of a string 
    C = len (m)       # calculating the string length m 
    IF X == int (n-[-C ::]):    # [] represents a string list 
    # by the character string into digital int, n-[start value: end value: step], negative sign represents the reverse 
        print(x)

 

Guess you like

Origin www.cnblogs.com/haishangmingdeng/p/11441976.html