CBSE Class 11 Informatics Practices Question 54 of 75

Conditional and Looping Constructs — Question 26

Back to all questions
26
Question

Question 10

WAP to display even numbers between 10 and 20.

Solution
for num in range(10, 21):
    if num % 2 == 0:
        print(num)
Output
10
12
14
16
18
20
Answer