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

can someone help me with this please!
Clindamycin doesn't mix with what foods
Handel's Water Music is an example of a/an A. allemande B. overture C. suite D.sontana HELP PLEASE!!!
In the ordered pair (4,9) what is the y value ?
why was Dwight D Eisenhower considered to be a moderate?
how do you convert the angle measure of 2.35 radians to degrees
What are two questions you could ask about an ocean ecosystem
What is the net charge?
Although the breed started out as Roman cattle dogs, Rottweilers have also worked as guard dogs, draft dogs, and police dogs. Which type of sentence structure
Suppose $a$ and $b$ are the solutions to the quadratic equation $2x^2-3x-6=0$. Find the value of $(a+2)(b+2)$.