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

TQRS~BCDE name a pair of corresponding side
evaluate the extent of African civilization at the great Zimbabwe monument in the following areas mining agriculture medicine weaving metallogy
sin(x)^4+ cos(x)^4=1/2
A 16-ounce package of frozen vegetables costs $2.10. How much would you expect a 12-ounce package to cost?
To enable remarketing in google analytics, what must first be enabled?
What movement of Earth is responsible for night and day? perigee precession revolution rotation
Really stuck on this one. I would really appreciate if anyone could help
After typing 1/4 of a term paper on Friday, Richard completed 2/3 of the remainder on Saturday. If he wanted to finish the paper that weekend what part was left
When neighborhoods or buildings become __________, they lose their usefulness.
The best rebounder in basketball have a vertical leap (that is, the vertical movement of a fixed point on their body) of about 120 cm. A: What is their initial