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

find the start and end coordinates of y=2 sin x.
A quantity of gas in a piston cylinder has a volume of .362M3(cubed. If the gas is initially at room temperature (20C) and is heated in isometric process, what
Find the slope of the line passes through the pair of points (-5.5,6.1), (-2.5,3.1) A. 1 B. -3/8 C. 3/8 D. -1
why specifically, do you think Orwell chose to make Goldstein Jewish? (Consider that Orwell wrote this novel in the late 1940s, during and after World War II) B
What is the first thing you should look for on a food label?
Which definition gives the meaning of the word mollify as it is used in the first sentence? The councilwoman said, “I’d like to mollify your concerns over the
Question 1 (3 points) The fish in the ocean are an example of
What is the percent by mass of 150g of KNO3 dissolved in 400g of solution?
Find a function that models the simple harmonic motion having the given properties. Assume that the displacement is zero at time t = 0.amplitude 16 cm, period 3
1 At the annual hotdog eating contest, James eats 32 hotdogs in 60 seconds. At this rate, how long would it take James to eat 48 hotdogs?