Home > other >  O bosses shows this Python code
O bosses shows this Python code

Time:05-14

Enter an integer n, the random output one of two prime Numbers n1 (n1 is not more than 10 times n), a three digits primes n2 (n2 is not more than 100 times n), find two Numbers (including n1, n2) between all Numbers (the digital sum you for odd number), the first line the one, two... Right-aligned output

CodePudding user response:

N, n1, and n2 control you
 n=int (input (& gt; ""> N: ")) 
N1=int (input (" & gt;> N1: "))
N2=int (input (" & gt;> N2: "))

X, curx=0, 1
For I in range (n1, and n2 + 1) :
If the sum (map (int, STR (I))) % 2==1:
X +=1
Print (I, end="\ t")
If x==curx:
Print (" ")
X=0
Curx +=1
  • Related