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

PLS HELP ME WITH THIS I NEED IT QUICK!!!!!!!!!!!
What inspired Helen Hunt Jackson to research and write A Century of Dishonor? A) her investment in the Carlisle Industrial Indian School B) her kidnapping as a
help me with this im giving out a lot of points like seriously -_-
.Martin Luther King, Jr. ‘s “Letter from Birmingham Jail” (1963). •In at least a paragraph, describe a persuasive moment of the speech. QUOTE THE LINE! Explain
calculate 6/√2 and express it in form of a√b
For each of the following types of transcriptional control, indicate whether the protein produced by the regulator gene will be synthesized initially as an acti
Read the following passage and answer the question that follows: (1) One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in h
what does 'distribution of population' refers to​
What to understand about Passive voice
PLEASE HELPPPP A standard I.Q. test produces normally distributed results with a mean of 100 and a standard deviation of 15 for the city of New York. Out of app