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

Factor the polynomial by its greatest common monomial factor.
Whatwhat does the figurative language He kept his eyes on the rocky peaks that jutted into the sky jagged sharks teeth."mean
Which expression is equal to ...?
A male bird-of-paradise uses a dance to attract mates in which it flaps its tail feathers on the ground and jumps around a potential female mate. A different ma
what are charasteristics of lisosphere
Which expression is equal to (f+g)(x)?
what would the rule be for the reflection of y=-3
2. Explain in words how you plot the point (4, −2) in a rectangular coordinate system.
The library carries many current books.what is the adjective
Type the correct answer in each box. Spell all the words correctly, and use numerals instead of words for numbers. If necessary, use / for the fraction bar(s).