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 solution to the system of equations by using either graphing or substitution. y = 2x - 1 and y = x + 3 A. (4, 7) B. (7, 4) C. (-7, -4) D. infinate sol
What were some of the hardships NC faced during the Great Depression?
how many feet is 20% of 4 miles
Kennedy's military policies encouraged more funding for
Please Help Thank You
Food is stored in the stomach for about one day. True False
Describe how samples of nitrogen and oxygen can be obtained from air?
Find the surface area of the regular pyramid shown to the nearest whole number. The figure is not drawn to scale. A. 351 m^2 B. 415 m^2 C. 542 m^2 D. 790 m^2
is there anyone that can help me with this
Consider the following scenario. You are on trial for assault. During your trial, witnesses testify that you were nowhere near the scene of the crime on the nig