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

One traditional flood control method has been to attempt to keep the streams flow within it's channel by creating_____?.
Create an expression equivalent to 3x+2x-x
Is Macbeth a tragedy of fate or of character? In determining your position on this, consider whether the witches play a central or collateral role in shifting t
is light an external or internal stimulus for a plant
Ratios and proportions... 7/9 and 140/180
Which states' delegates most strongly opposed the Virginia Plan? A.) large states B.) northern states C.) small states D.) southern states slave states
Pete is 15 years old.This is 6 years younger than his sister Victoria. Write an equation to find Victoria's age?
80% of a number is 96. What is 25% of that same number? A. 20 B. 30 C. 40 D. 120
what is 64% of 75 tiles
1. When selecting a mode of exercise for a client, it's important to consider the A. amount of interaction with other clients. B. long-term enjoyment of the