Informatics Practices

WAP to display even numbers between 10 and 20.

Python Control Flow

6 Likes

Answer

for num in range(10, 21):
    if num % 2 == 0:
        print(num)

Output

10
12
14
16
18
20

Answered By

5 Likes


Related Questions