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 are the partial products to 652 x 4 =2608 A. 8; 200; 2,400 B. 8; 260; 2,400 C. 8; 608; 2,400 D. 8; 208; 2,200 PLEASE HURRY!
A branch of the u.S. Armed forces with the motto semper paratus runs a training facility in northern california. Approximately how many people are trained there
My friend Marilyn enjoyed the tour of the cavern. Which of these words or phrases in the sentence is an appositive? A. of the canyon B. my friend C. Mar
3. How does the author show that Odysseus is not completely heroic? How does he show that the Cyclops is not completely monstrous?
Paraphrase the following sentence from paragraph 7: "So we had no alternative except that of preparing for direct action, whereby we would present our very bod
Write the name of that shape:
i need help with this
At a soccer match, for every goal team A scored, team B scored 3 goals. The ratio of the number of goals scored by team A to the number of goals scored by team
10. In October 2018, someone in South Carolina won the largest lottery of nearly $1.6 billion. If the winner takes the payout option instead of a lump sum, the
Who was Roosevelt’s desired successor to the presidency during the 1908 election