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

Linda had 42 fliers to post around town. Last week, she posted 2/3 of them. This week she posted 5/7 of the remaining flires. How many fliers has she still not
Helvetica emerged during the late Modernist period, which began after World War II. According to the film, what were the hallmarks of late Modernist design? Wha
Francois and Perrault are
honestly just use this question for points
A 40-year-old man who returns home late from a party falls asleep in a chair and awakens with weakness and numbness in his right hand. Examination reveals moder
Can anyone help me?please draw a model for me.
In the reaction A + B → AB, which of the following will not increase the rate? (A) increasing the temperature(B) adding B(C) adding A(D) adding a catalyst(E) de
Tony and Elspeth are in their late twenties and have been together for more than eight years. They have finished college, secured good jobs, and bought a house.
A 40-year-old man who returns home late from a party falls asleep in a chair and awakens with weakness and numbness in his right hand. Examination reveals moder
Why does S. cerevisiae produce a sample with cells colored purple, pink, brown, and green? Explain why this organism produced results that deviate from typical