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

A person leaves home at 8:00 a.m. and drives to a destination at a rate of 40 mph. The person returns at a rate of 25 mph and arrives at 2:30 p.m. How far was
Click an item in the list or group of pictures at the bottom of the problem and, holding the button down, drag it into the correct position in the answer box. R
how many oxygen atoms are in 0.25 calcium nitrate
Pennsylvania and Delaware were colonies given in a payment of debts true or false?
What is the value of Σ^3(4*(1/2)^I-1) I=1 ? a.7/8 b.8 c.7/2 d.7
Need help 1 through 10
Shanken corp. issued a 30-year, 5.9 percent semiannual bond 6 years ago. the bond currently sells for 108 percent of its face value. the company's tax rate is 3
If the volume of a cube is 1000 ft.³ when is the service area
Geometry math question no Guessing and Please show work thank you
How many cubic meters are there in 4312 cubic centimeters?