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

What form of judicial selection requires judges to face a retention ballot after a short time in office?
I need help on the the middle one
Pepita Jimenex 11 de junio: Qué le promete don Pedro a don Luis?
How do I solve these?
What is the greatest common factor of 24s3, 12s4, and 18s?
Which thesis statement names what is being compared and the similarity or difference the essay will focus on? 1)City life and country life have many difference
Which trade system resulted in bringing cotton from South Asia to the middle East?A. silk roadB. Indian ocean C. Trans-saharanD. Mediterranean
The Let's Roll game uses the number cube with number 2, 4, 6, 8, 10 , 12. How likely is it to roll a number less than 6?
Which of the following is a correct name for a side of the given angle ??
When a lever is used to apply force, the lever moves or pivots against one area. This pivot point is called a/an A. base. B. anchor. C. fulcrum.