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

One of the main actions of the Second Continental Congress was Question 8 options: to establish an army and appoint a commander in chief. to sign a treaty wit
If x = 12 cm, what is the volume of the prism? cm3
Which cells are no longer capable of carrying out the process of dna transcription?.
I need the answer to this quick pls​
How can a market be segmented using demographics?
Match the Spanish vocabulary words for professions in the first column with their English equivalents in the second column. el carnicero 2 lawyer el abogado 2.
Which of these factors a may affect a person's blood alcohol concentration? O gender O race O blood type age
Runchuan filled his 6-cup jar with honey. How many times could he fill his 2-fluid-ounce honey bear from the jar? Explain.
4. Unless people are conscious of pollution, the world will be destroyed by the year 2050.
Topic : Collisions and Conservation of Momentum 1. Two children are standing still on ice and push off each other. Each has a momentum after the push. Do they v