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

Use a ratio box to solve this problem. The price of one model of car increased 10 percent in one year. If the price this year is $17,600, what was the price las
please answer all six
Urgent help NEEDED. LOOK AT THE IMAGE
look at pic 10 pts will mark brainilest C: ( 9 x 18) + (6 x 2) D: (20 x 6) + (18 x 3) E: (20 x 9) - (3 x 2)
no links i need help please Material that allows light to pass through it is called _____________________. A. translucent B. transparent C. polarized D. opaqu
need help for french quiz
the noise of a dorm slamming came from downstairs reverberated trhough the house so loudly --like a gunshot--that bruno jumped and maria let out a small scream.
What is the inverse of y=1.5^x
Drag each scenario to show whether the final result will be greater than the original value, less than the original value, or the same as the original value.
Part C “The Raven” uses the sound device ASSONANCE. Give an example of assonance from the poem and briefly explain your answer. THIS IS DUE IN 5 MINUTES PLS HEL