Search
 
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
Name
3+4 =