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

which expression is equivalent to x^4-y^4?
A car that travels from point A to point B in four hours, and then from point B back to point A in six hours. The road between point A and point B is perfectly
A bottle rocket that was made in science class had a trajectory path that followed the quadratic equation y=-x^2+4x+6. What is the turning point of the rocket's
How many heart chambers does a shark have?
why did  the volcano explode
Which of the following is equivalent to 3a + 4b – (–6a – 3b) ? A. 16ab B. –3a + b C. –3a + 7b D. 9a + b E. 9a + 7b
Jonathan has been on a diet since January 2013. So far, he has been losing weight at a steady rate. Bases on monthly weigh-ins, his weight, w, can be modeled by
What do Frederick Douglass' words "America reigns without a rival" mean?
how many books did Harriet beecher stowe write?
What is the value of x in 15x-10= 20