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

Magnesium carbonate, MgCO3, reacts with nitric acid, HNO3, to form magnesium nitrate and carbonic acid. Carbonic acid reacts to form water and carbon dioxide. W
Why is it important to address your letter to a specific person
Areas of the cerebral cortex involved with the initiation of motor impulses are localized to the posterior aspect of the __________. areas of the cerebral corte
Shakespeare’s allusion to Hecuba suggests that Hamlet
When using science to investigate physical phenomena, which characteristic of the event must exist? a.predictable b.repeatable c.provable d.readable
How to write a real world problem involving the subtraction of two mixed numbers whose difference is less than 2 1/2
what inference can you make about whitte attitudes towards blacks in Massachusetts ?Any thoughts on what could explain this?
you live 3.67 miles from your grandparents and you are biking how do you solve this
Given that D is the midpoint of AB and B is the midpoint of AC, which statement must be true? A: AD = 1/3 AC B: AC = 4DB C: AB + DC = AC D: BK = KC
The distinction between the sacred and profane is at the heart of all religions. True or false?