Ask Question
8 December, 11:19

Write a loop to print 56 to 70 inclusive (this means it should include both the 56 and 70). The output should all be written out on the same line.

+4
Answers (1)
  1. 8 December, 13:18
    0
    for i in range (56,71):

    print (i)

    Explanation:

    By the range 56 to 71 it means that for loop will run when i=56 to i=71, but the upper bound is one less than the upper bound, and which is 70. So the above loop will print integers from 56 to 70.

    And the above code is in Python.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a loop to print 56 to 70 inclusive (this means it should include both the 56 and 70). The output should all be written out on the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers