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

If I have 3 shirts, 4 pants, 2 sweater, 6 pairs of shoes, how many different outfits can I make?
If the measure of angle 5 is (11x-14) and x=6, which expression could represent the measure of angle 2? Answer choices: (8x+4) (9x+2) (20x+8) (18x+20)
The purposes of a bar graph are to _[blank]_. Which options best complete the sentence? (Select all that apply.) A-visually depict the divisions of a whole B-v
15. Writing in paragraph form is called....A novelB. plotC. short storyD. prose​
Solve for x (1.) 5/10x-9=8 (2.) 3/4x-3=1+5/12x
how does the federal government establish justice
write a letter about brother/sister suggest not to eat junk food​
A model rocket is launched with an initial upward velocity of 54 m/s. The rocket's height h (in meters) after t seconds is given by the following.
find r 3(r - 7 ) = 4(2 - 2r) + 4
Write a word phrase that can be represented by m + 25. A - the difference of 25 and m B - 25 less than a number m C - 25 more than a number m D - the quotient o