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

3. Siti and Mary shared $35 in the ratio 4:3. How much money did Siti receive?
A patient has severe combined immunodeficiency. Which best explains why the patient cannot benefit from immunizations to treat the disease? Immunizations are us
Discuss the component structures of the neuron and their functions.
I'M NOT ASKING FOR THE WHOLE ESSAY BUT SOMEONE PLS GIVE ME AN IDEA OR THE GIST OF SOME TOPICS BECAUSE I DON'T KNOW Use the internet to research either China, In
Work out the circumference of this circle. Give your answer in terms of pi and state its units
Please help me......asap
Determine the mass of hydrogen gas collected in a container if the gas occupies 44.8 L at STP.
Calculate the molarity of a sodium hydroxide solution if 50.0 mL of this solution was completely neutralized by 46.6 mL of 0.750 M sulfuric acid.
A closed rectangular box has volume 38 cm ^3. What are the lengths of the edges giving the minimum surface area
The diameter of a semicircle is 6 kilometres. What is the semicircle's radius?