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

Desmond and deirdre are two biological siblings who are being reared in the same home. their iq scores are much more similar that those of glen and giselle, who
Write a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. the user should be asked if he or she wishes t
A celebrity persona is usually meant to present: A. superhuman powers and capabilities B. the kind of characters that an actor plays C. an aspect of a celebri
Narrative knowledge includes all of the following EXCEPT:
What types of groups are defined as economic interest groups?
which hexadecimal number equal 11000101
Mitochondria and chloroplasts have similarities and differences. All BUT one of the characteristics on the list above are similarities between mitochondria and
What is the reciprocal of 6 4/5? A.) 5/34 B.) 29/5 C.) 34/5 D.) 15/5
Question 1 options: During photosynthesis, ________ energy is converted into __________ energy within the chloroplasts.
Train travels 60 miles in 40 minutes what is the average speed