Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def print_even_numbers(first_num, last_num):
  2.     if((first_num%2) != 0):
  3.         first_num += 1
  4.    
  5.     while(first_num <= last_num):
  6.         print(first_num, " ", end = "")
  7.         first_num += 2
  8.        
  9. print_even_numbers(6,16)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement