bstephenson22 bstephenson22
  • 22-01-2020
  • Computers and Technology
contestada

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.

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 28-01-2020

Answer:

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.

Answer Link
fnej
fnej fnej
  • 22-04-2021

Answer:

for i in range(56, 71):

  print(i, end=" ")

Answer Link

Otras preguntas

what is the gcf and lcm of 390 and 250
Relationship between Mini and Kabuliwala
Relationship between Mini and Kabuliwala
What is 3 to the 3rd power times 3 to the 4th power
the total cost of 3 tables & 2 chairs is rs 1850 ...if a table RS 75 more than a chair ,find the price of each ?
What is 3 to the 3rd power times 3 to the 4th power
Georges Cuvier's discovery of fossils of Irish elk and giant ground sloth:
what is 12.345 rounded to the nearest tenth
if the minimum velocity of a projectile is double the minimum velocity,the angle of projection is
Factor by grouping:4-12r+9r^2i know the answer is (2-3r)^2Can anyone explain to me how it is?