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 a parallelogram one angle is 9 times the size of another. find the measures of the angles
How many hours are 180 minutes
Please answer:If a stadium holds 60000 people.1. If the stadium is 2/3 full, how many people are there?2. If the stadium is 3/4 full, how many people are there?
If the length of each side of a square prism is ten feet. Find the total surface area of this object
Rachel and David share 40 biscuits between them in the ratio 2:3, How many biscuits do they each get?
find the point on the y-axis that is equidistant from (6,1) (-2,-3)
the length L of a spring is given by L=(3/4)F + 5 where F is applied force. What force F will produce a length of 8?
Add these fractions (Lowest Terms) a) 1/6 + 1/6 b) 1/4 + 3/8 c) 2/3 + 5/6 d) 9/21 + 4/7 e) 1 3/5 + 1/10 f) 1 1/4 + 11/12 g) 1 2/3 + 2/3 h) 1 5/6 + 3 2/5
find the point on the y-axis that is equidistant from (6,1) (-2,-3)
Which expression can be used to change 75 kilometers per hour to meters per minute?