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

Which statements describe people's interactions with their environment? Choose all that apply. Technology does not affect the earth's environment. People ad
What would be the proper response to: Quién habla contigo? ¿Cuándo estudias con ella? ¿Qué escuchas con ellos? ¿Dónde practicas el español conmigo? ¿Qué miras
What are the basic aspects of the self-actualization model for personal growth?
Which of the following people served as President Clinton's Vice President? A) Ross Perot B) George Bush C) Newt Gingrich D) Al Gore
How does distance affect the apparent magnitude of a star?
how do i use parentheses to rewrite 16 - 4 × 3 + 7 so that it equals 120?
One consequence for nonprofits of using resources inefficiently is that .
How can the creation of a new empire impact of people and culture of a region
Why are psychology courses often requirements of so many different programs of study?
Why did european nations increasingly form alliances in the early 1900's