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

can someone help me with this one​
HELP PLSSS. Combine these radicals. - 12sqrt(12) - 2sqrt(3) O - 50sqrt(3); - 22sqrt(3); - 26sqrt(3); - 10sqrt(12)
Which of the following statements is false?
3 log2 (x+1) - 2 = 13​
sin0+sin0+2sin0+3sin0 step by step
Simplify the expression: 4 + 4f2 + 6f - 6f
Explain the significance of Rizal's Law to the present time?​
Evaluate the expression. Question 9 options: A) tan π∕56 B) tan 17π∕56 C) –tan 17π∕56 D) –tan π∕56
Find the perimeter of the image below
If BC = 15, BE = 6, DC = 12, and AD = 8, then segment DE is parallel to segment AB.