Ask 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 same line.

+3
Answers (1)
  1. 19 March, 23:14
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers