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

explain how you can use reasoning to compare two fractions with the same denominator
nine twentieths is equal
it takes Zoe 1\16 of an hour to write 1 thank you card. How many cards can she write in 3\4 of an hour
There are 7 numbers in the set of data. the mean and median are 7. the mode is 4 and occurs 3 times. find the numbers? explain
The sum of two positive numbers is 5 times their difference. What is the ratio of the larger number to the smaller number?
Read the hypothetical situation below and answer the question that follows. In response to criticisms that the King of Mordor has failed to gain the consent of
Headlines are sometimes misleading because it is impossible to tell the whole truth in only a few words. a. True b. False
Larisa buys 5 hats for $9.99 each. how much does she spend
What is a commutative property of multiplication?
Which of the following is not an example of a mineral crystal shape? a. Kryptonite b. Pyrite c. Quartz d. Calcite