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

The shorter leg is??????????
A chemist prepares a solution of silver nitrate by measuring out of silver nitrate into a volumetric flask and filling the flask to the mark with water. calcula
△EFG≅△JKL. What is m∠L?
What are the amplitude, period, phase shift, and midline of f(x) = −4 cos(3x − π) + 1? amplitude: −4; period: pi over 3; phase shift: x = pi over 4; midline: y
Which of the following statements is true? A) The dependent variable is the input of the function. B) The dependent variable determines the domain of the functi
Which of the following is a surface barrier to infection? skin antibodies antigens lymph nodes
Which function has the greatest constant of variation? A x 8 9 10 11 y 20 22.5 25 27.5 B x 1 2 3 4 y 3.2 6.4 9.6 12.8
Can you help me find the answer to 22?
which trigonometric function would you use to solve the problem?
if x^2=40, what is the value of x?