DodiBoiJesus3569 DodiBoiJesus3569
  • 03-07-2021
  • Computers and Technology
contestada

Write a simple nested loop example that sums the even and odd numbers between 5 and 15 and prints out the computation.

Respuesta :

temdan2001
temdan2001 temdan2001
  • 03-07-2021

Answer:

for e in range(6, 15, 2):

for o in range(5, 15, 2):

calc = e+o

print(e, "+", o, "=", calc)

Explanation:

Answer Link

Otras preguntas

what is 7.87 rounded to the nearest tenth
Order from greatest to least 2.007; 2.714; 2.09; 2.97
What would be a good national slogan that people could identify with and rally behind?
Find the measure of the third side of the triangle given the measures of two sides. 6ft and 19ft I don't know how to get the third side.
Find the measure of the third side of the triangle given the measures of two sides. 6ft and 19ft I don't know how to get the third side.
a pipe is leaking at 1.5 cups per day.about how many gallons per week is the pipe leaking
I need to write the number 36 in expanded form
the RATIO of floor seats to balcony seats in a theaters is 20:1. does this theater have more floor seats or more balcony seats? how do you know? SHOW WORK! PLEA
Which of the following statements is correct? a. RNA contains the genetic code. b. RNA reads and translates the DNA code c. DNA reads and translates the RNA cod
Which achievement was Giovanni Caboto, also known as John Cabot, known for? A. He reached North America before Columbus but was unable to prove that he had foun