ulvis.paste.net

Paste Search Dynamic
Recent pastes
divisible
  1. # Program to print is divisible by numbers
  2. num1=2
  3. num2=50
  4. s=[]
  5. for i in range(num1,num2+1):
  6.     for j in range(2,i):
  7.         if i%j==0:
  8.             s.append(j)
  9.     if len(s)>=1:
  10.         print(i,"is divisible by ",s)
  11.     s=[]#
Parsed in 0.003 seconds