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

In the continental United States,the ratio of states that border an ocean is 7:9 .How many of the states border an ocean?
Which action is an example of the government pursuing a fiscal policy? The central bank increases the money supply. The Federal Reserve decreases the money sup
A number between 1 and 20 that has five factors
A package of 5 pairs of gloves costs $29.45. What is the unit price of a pair of gloves? is it $5.89per pair?
The major US acquisitions of land from Mexico during the mid-1800s were
Why did Muhammad leave Mecca for Medina?
If it takes a man a week to walk a fortnight, and bacon is ten pence a loaf. How much cloth to make a humpty backed giraffe a waist coat
After 3 years what is the total amount of an investment of $1500 in an account paying 3.5% interest, compounded quarterly? A.)$1665.31 B.)$1724.36 C.)$1908.42 D
The relationship between newspaper readers and newspapers is most like that of _____.
Why might Americans have known little about the land west of the west of the Mississippi River in 1803?