Created
December 18, 2011 11:23
-
-
Save amithkk/1493065 to your computer and use it in GitHub Desktop.
Divisibilty test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i=2 | |
cfl=2 | |
print "What is the number to compute?", | |
cno=int(raw_input(">")); | |
while i>0: | |
cfl=cfl+1 | |
i= cno%cfl | |
print cno,"is exactly divisible by",cfl | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment