CBSE Class 11 Computer Science Question 60 of 80

Conditional and Looping Constructs — Question 30

Back to all questions
30
Question

Question 14

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