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

As the building collapses, the volume of air inside the building decreases, while the mass of the air stays the same. This means that the _____ of the air insid
How many times greater than in the rest of the population do experts estimate that the prevalence of language disorders among female juvenile delinquents is?
Why is Sumer considered an advanced civilization of their time period in history
The field of _______ has emerged as the major discipline that studies links between the brain and cognitive functioning.
The expression is (10w^3)^2/5w equivalent to Answer choices 1: 2w^5 2: 2w^8 3: 20w^5 4: 20w^8
In middle childhood, __________ have more friends, and _________ have closer friends.
A swimming pool can be filled in 5 hours by hose a alone and 6 hours by hose b alone. how long would it take to fill the pool using both hoses?
What are key tests of controls / substantive tests for sales? what are you trying to validate? g?
Noah wants to display his 72 collectors flags he is going to put 6 flags in each row of flags will he have in his display?
You're considering three mutually exclusive options for the additional space she just added to the specialty retail store she owns. the cost of the expansion wa