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

NEED HELP FAST!!! The Teacher Who Changed My Life by Nicholas Gage: What was Gage's purpose in writing the essay.
In what year was the phonograph invented? 1831 1853 1877 1899
how can men and women be a victom of public violence
What is the best approximation of the area of this circle? Use 3.15 to approximate pi. A. 12.6 B. 25.1 C. 50.2 D. 158.0
Why did the congress feel the war powers act was necessary?
Was wartime production was allied to the war effort
the power of judicial review was established when a) the original united states constitution was adoptedb) an amendmet was added to the united states constituti
why were the japanese able to advance in the pacific in 1942
how much does he receive if he is given 1.5% commission?
What is the radius of a sphere with the surface area of 16pi