Q. Write a program to display even numbers between 10 and 20. Draw its flow chart also.


Answer :-

for i in range (10, 20, 2):
    print (i)



Output :-

10
12
14
16
18

>>>

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. why 20 not printed?

    ReplyDelete
    Replies
    1. because range keyword take value from 10 to ( 20 -1 ) = 19

      Delete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post