DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
input a number and print even numbers up to that number in python
def PrintEven(num): x=0 while(num>0): if x%2==0: print(x) if x==num: break; x=x+1 PrintEven(200)
PREVIOUS
NEXT
Tagged:
#input
#number
#print
#numbers
#number
#python
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit