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

write and solve a real word problem that involves determining distance on a coordinate plane
Which P shifts to consumer in the four Cs of the alternate marketing mix? A) promotion B) product C) place D) price
What are synonyms for the word “mechanical”?
The table below represents the displacement of a fish from its reef as a function of time: Time (hours) x Displacement from reef (feet) y 0 4 1 64 2 124 3 184
complete the solution of the equation. find the value of y when x equals to 28 x+3y=28
Note-taking is important because they may be referred to again before a trial—sometimes months or years after the initial investigation. True False
A regular pan has a length that is 4/3 the width. The total area of the pan is 432in.2. What is the width of the cake pan?
What is the conversion factor between kg/m^3 and g/m^3. Express your experimental values for the densities in kg/m^3.
Solve the equation -9p - 17 =10 A -3 B. 16 C. 18 D -16
Is revlon performing better or worse than it was the previous day? How do you know?