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 tables and graphs below are of functions with extrema. Estimate the zeros. Then estimate the x-coordinates at which relative maxima and/or minima occur.
May I please receive help on this question
Children in homes where domestic violence occurs are: less likely to be abused or neglected than children who live in homes where no domestic violence occurs. m
cup is to adult bottle is to​
From the following Venn diagram, write the elements of the set A and B and verify n(AUB) + n(A∩B) = n(A) + n(B)​
What is the characteristics of a panther
55. Nike Sell shoe and report statement of income as below: Nike Co., LTD Income Statement For Year Ended December 31, 2019 Sale (50,000 Nike at $40 per unit)……
Those farmers have taken over half of Massachusetts! Who’s going to stop them!! What weakness of the Articles of Confederation is this?
(Q044) Ignoring the Proclamation of 1763 enabled colonists to do what action in the Borderlands? Oa) migrate to England Ob) remain on the East Coast O c) expand
Convert into its simplest form.(Trigonometry)​