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

What type of punctuation is not used internally in a sentence
Which describes how the underlined pronoun is used in the sentence? Aunt Mimi made us costumes to wear to the party. A. object of a preposition B. subject
echoderms contain a what similar to the kind that vertebrates have
which ethnic group first settled in australia
Which of the following class names shows correct capitalization? A. Theater appreciation 2A B. theater appreciation 2a C. Theater Appreciation 2A D. theater
Mass starvation in Ireland in the 1840s led directly to
Which statement about stress is true
Which measurement is most accurate to describe the weight of a dime? 25 mg 120 g 0.5 kg 5,700 mg
Tamora just made the last of her monthly payments on her loan. She had been making these payments for the past nine years. The loan had a principal of $10,675 a
What is the connotative meaning of this line from Kurt Vonnegut's "Report on the Barnhouse Effect"? General Barker bustled about the house like a woman prepari