fishbait

Untitled

Nov 15th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. a=40
  2.  
  3. while a<50:
  4.     if (a/6*6==a):
  5.         print ('6 is a factor')
  6.         break
  7.     else: a=a+6
  8.     print ('6 is not a factor')
  9.     break
  10.  
  11. while a<50:
  12.     if (a/9*9==a):
  13.         print ('9 is a factor')
  14.         break
  15.     else: a=a+9
  16.     print ('9 is not a factor')
  17.     break
  18.  
  19.  
  20. while a<50:
  21.     if (a/20*20==a):
  22.         print ('20 is a factor')
  23.         break
  24.     else: a=a+20
  25.     print ('20 is not a factor')
  26.     break
  27.  
Advertisement
Add Comment
Please, Sign In to add comment