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

1) when a spring is stretched, its length increases from 58 cm to 66 cm. Calculate its extension. 2) Your friend has fallen through the thin ice on a frozen pon
Your aunt is 37 years old. This is 7 less than 4 times your brother's age. Write and solve an equation to find your brother's age A. I'm confused on what the e
what are the primary curvatures of the spine and how are they shaped?
Pre-Columbia art is art that was produced before whose arrival in the Americas
What percentage of the electoral vote did Lincoln receive? O 49% O 51% O 59% O 69%
Taking notes will help you commit key ideas to memory. Which of these strategies should you use for note- taking? A. Writing down about one third of the informa
find the x intercept and y intercept of the graph of the equation. 5x+4y=20
A cell contains 20% solute. If it is placed in a solution with 35% solute, what will happen to the cell?
The goalie performs a goal kick after the other team scores a goal on them True or false​
A father lifts a toddler 1.5 m up in the air. The child gains 187.5 J of energy in her gravitational potential energy store as a result. What is the mass of the