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

round 0.4625 to the nearest cent
Although dry regions may never be as densely populated as those near water, which of the following factors has led to increased populations in dry areas?
How would I oreder the numbers least to greatest 4.2,-41/9,-4.6,43/8
How to write 7/8 as a percent
what do planets and stars have in common
what is 38% of 250? show your wor
An experiment requires 40.0g of ethylene glycol, a liquid whose density is 1.114 g/mL. Rather than weigh the sample on a balance, a chemist chooses to dispense
how were the Gothic cathedrals different from earlier types of cathedrals
write the volume in cm3 of a container which holds 2.250litre?
Find a rational number between -1/4 and 2/5