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

suppose that the amount of bacteria in a dish doubles every 3 hours. If the dish initally contains 50 bacteria, how many will it contain after 12 hours?
What does scrooge say the poor should do this christmas?
One two maybe three arguments against suicide
Which best identifies the characteristics of a persuasive essay A. Characters and settings B. Reasons and Evidence C. Researched sources D. Dialogue and stage
Queen Elizabeth I was a very capable, well-qualified monarch who led England to a period of greatness. True False
When an ex-convict returns to a life of crime, this is known as?
The sum of two numbers is 51. If one fourth of one number exceeds one fifth of another number by 6, which of the following is the smaller number?
Animal farm who said the only good human is a dead one
with the onset of puberty, boys and girls are apt to experience all of the following except:A changes in muscle strengthB. fascia acneC. fewer growth spurts D.
What is the skills and education needed to work in retail hospitality?