Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

input a number and print even numbers up to that number

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
ADD COMMENT
Topic
Name
6+6 =