# Program to print even numbers in the range 22 to 44
for num in range(22, 45):
# Check if the number is even
if num % 2 == 0:
print(num)
The `range(22, 45)` function generates numbers from 22 up to (but not including) 45. The `if num % 2 == 0:` condition checks if the current number `num` is divisible by 2, which means it's an even number. If it is, the number is printed.
Answer: 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44