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

Using a complete sentence, explain what the point (1, 2) means. Remember to look at the units!! the graph below will help you
An object with the mass of 300 g is placed in a container with 200 cm3 of * 10 points water and the amount of water poured out is recorded, as shown in the figu
what is the greatest common factor of 48,28, and 44
PLEASE HELP ME I'M CONFUSED.
could anyone help me please and show the work please
In the essay, al-Sharif claims that she was brainwashed as a child and that her life was stolen with a lie. What lie was she told growing up in Saudi Arabia? Ho
Carolyn has just retired, and has 400000 dollars in her retirement account. The account will earn interest at an annual rate of 6 percent, compounded monthly. A
x + 4y =6 y=- -x + 3
who is a lobbyist in coporations
Karen is working on a project that is due in 10 days. So far, she has spent 3 2/5 hours on it and figures that she is about 3/8 done. How many more hours wi