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 area of a regular hexagon with apothem of 17.3 miles long and a side length of 20 miles long.
Which chart correctly describes the properties of electric and magnetic fields?
Divide. 9x^2y^2 -12xy^2 -6xy -------------------------------- 3xy
Based on the results of testing colorless solutions with indicators, which solution is most acidic? (1) a solution in which bromthymol blue is blue (2) a soluti
Which process is exothermic? (1) boiling of water (2) melting of copper (3) condensation of ethanol vapor (4) sublimation of iodine
A current of 120 mA flows past a point in a circuit for 25 s. How much charge passes the point in this time? How many electrons pass the point in this time?
What is an old Chinese belief concerned with tadpoles?
A carbon-carbon triple bond is found in a molecule of (1) butane (3) butene (2) butanone (4) butyne
Which Group 14 element is classified as a metal? (1) carbon (3) silicon (2) germanium (4) tin
a sphere is circumscribed about an 8-inch by 8-inch by 8-inch cube. Find the volume to the nearest cubic inch.