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

Which of the following is not a known cause of carditis?
Find X segment of circles
Which ball has the most energy? A ball held at 2 meters. A ball held at 3 meters. A ball held at 1 meter. A ball resting on the ground. tory
PLSSSS HELP A bicycle is regularly priced at $235. It is on sale for 40% off the regular price. Sales tax of 8% is added onto the discounted price. How much do
ANSWER BOTH QUESTIONS about BIOLOGY PLEAASE!!
what responsibilities do you have to your fellow classmates and to your teachers​
This is an example of which type of conflict?
A new car is purchased and a $30,000 loan is taken. The loan is for 7 years (84 months) and the interest rate is 2.9% compounded monthly. What is the monthly pa
Cara is flying a kite at the park using a string that is 42 meters long. She notices that the kite is directly above her friend Leah. If Cara and Leah are stand
Write an equation of the line below in the picture? ​