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

How did the Arabian Peninsula’s location affect ability to trade? A.Trade was quite widespread because agriculture was so expansive. B.The location was so isol
18.2 18.45 18.6 18.76 I needed to order them smallest to largest did I do it right?
What was one goal of the repeal of Prohibition?
Which of the following describes the main focus of The Prince? A. It attacks the corruption of the Church. B. It promotes political power based on Christian pri
How do you tell if a caterpillar is a boy or girl?
what is 21% of 30.00
An increase in the atmospheric levels of carbon dioxide (CO2) is the biggest contributor to which of the following? A . global warming B . El Niño C. wind storm
Which sentence is correct? A. I turned off all the lights so the electric bill would be lower. B. I ride the bus so I can save gas money. C. The bus broke down,
-2x-y=-9 5x-2y=18 substitution
what is longitude? what is latitude?