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

The diameter of a semicircle is 2 yards. What is the semicircle's perimeter? Use 3.14 for pie
A histogram shows the data this is skewed to the right , which most likely describes the relationship between the mean and the median?
A 150​-inch pipe is cut into two pieces. One piece is four times the length of the other. Find the length of the shorter piece. The shorter piece is nothing inc
Latoya earns $25.05 for 3 hours of tutoring. How much money does latoya earn each hour?
Frederick Lugard justifies Britain's actions of imperialism by saying that
Made 35/1/2 hours at $12.30 hour how much is that
Complete the statements about circle j
If you are reading this please help!!!!
What does the line on the bottom of the following signs mean? ≥ ≤
My dog Barney dropped his tennis ball at my feet so I kicked it across the yard for him retrieve. Where should a comma be placed in the sentence above? A. aft