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

On another planet, the isotopes of titanium have the given natural abundances. Isotope Abundance Mass (u) 46Ti 77.100% 45.95263 48Ti 17.100% 47.94795 50Ti 5.800
Mathematical Literacy Assignment no 2021​
Which substance is a basic oxide?​
Read the excerpt from "A Quilt of a Country." Once these disparate parts were held together by a common enemy, by the fault lines of world wars and the electrif
what were the names of the Atomic bombs dropped on Hiroshima and Nagasaki?
Which of the following describes the way Tammany Hall worked?
Read the following passages: But looking, I presently saw something stirring within the shadow. ... Then something resembling a little gray snake, about the thi
How many hours niles and bob traveling A.4 hours B.5 hours C.8 hours D.10 hours
HELP PLEASE ON NUMBER 5!
What are the slope and the y-intercept of the linear function that is represented by the equation 8x-2y = 5?