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

Question 5 Which of these is required for natural selection to occur? Unequal reproductive success inheritance individual variation. all of the answers are c
Subtract the polynomials. Indicate the degree of the resulting polynomial.(10x^4y^2-9x^3y-9y)-(5x^4^y2+10x^3y+12y-8x)
The function g(x) is a transformation of the cube root parent function, f(x)=√. What function is g(x)? -5 1 5 f(x) g(x) O 5 1 1 A. g(x)=√x +4-3 OB. g(x)=√x-3-4
Find the slope and y intercept for -2x+8y=8
Kai is buying boxes of cookies at a bakery. Each box of cookies costs \$4$4dollar sign, 4. He wrote this equation to find how many dollars he'll spend (d)(d)lef
question 2 (essay worth 10 points) (4.02 mc) luke buys a certain brand of cereal that costs $11 per box. luke changes to a super-saving brand of the same size.
The graph of y=h (X) is a transformation of the graph of Y=f(X) Given that f(x) = (x+2)^3-3, write an expression for h(x) in terms of x.
a high uncertainty avoidance ranking indicates that the country has a high tolerance for uncertainty and ambiguity.
1. Cahokia was a major trade center for the( Hidatsa, Iroquois,Mississippians).
Find the ending balance: $2,500 for 25 years at 2.75% annual simple interest Show work