Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to print all even numbers in a range

for num in range(4,15,2):
  #here inside range function first no dentoes starting, second denotes end and third denotes the interval
    print(num)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Python #program #print #numbers #range
ADD COMMENT
Topic
Name
6+4 =