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 process occurs within the mitichondria
Islamic architecture and how far it influenced the architectural styles of the buildings under Shah Jahan.
PLEASE HELP!!! i’m taking a test rn and i don’t remember learning this!!!! What shape should you sketch based on the center of the hyperbola and a,b? A. triangl
what is the solution
Write down the steps which are included in the planning phase of the data analysis process?
How did men’s fashion change at the turn of the 20th century? Men began to wear expensive suits and fedoras. Men wore more accessories and adopted a casual sty
You compared the amount of sugar in eight different kinds of breakfast cereal. You want to show which kind of cereal has the highest sugar content. Which kind o
What are the coordinates of the endpoints of the segment T'V'? T'(-3, 6) and V'(0, 3) T'(-3, 6) and V'(0, 1) T'(-1, 2) and V'(0, 3) T'(-1, 2) and V'(0, 1)
You compared the amount of sugar in eight different kinds of breakfast cereal. You want to show which kind of cereal has the highest sugar content. Which kind o
Which of the following BEST describes a way in which water moves in the water cycle? A. Water falls from the sky as rain. It stays where it falls until it evap