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

Find the surface area of a rectangular prism with a length of 6.9mm, a width of 8.2mm, and a height of 14mm.
Write -90.85 as a mixed number in simplest form.
what is 54 times 3 times 71 minus 45 plus 102 divided by 6 times 25 subtracted by 34 times 141 plus 32 subtracted by 67? Also put 578402/10856 in simplest form.
Jim has a box in the shape of a rectangular prism. The area of the base of the box is 48 square inches. The volume of the box is 144 cubic inches. let h= the he
What caused Portugal to finallywithdraw from its African colonies?
what is the percent notation for 6.4%
What is a fraction name for 4
How did rationing support the war effort in ww2?
"Pilgrim progress" what does the town vanity symbolize?
4x^2-28x+49=5 solve the quadratic by completing the square