missymiss9018 missymiss9018
  • 26-05-2023
  • Computers and Technology
contestada

Which of the following best describes what the function compute returns? def compute (n) : i=2 sum =0 while i<=n: sum = sum +i i=i+1 return sum
a. It returns the sum of integers from 2 to n−1 b. It returns the sum of integers from 1 to n−1
c. It returns the sum of integers from 1 to n
d. It returns the sum of integers from 2 to n

Respuesta :

Otras preguntas

What is the major difference between a solution and an ordinary mixture?
Name two modern technologies that help us to monitor cyclones.
find the percentage decrease in the area of triangle if each of its side is halved. (by using heron\'s formula)
Name two modern technologies that help us to monitor cyclones.
In the poem the inchcape rock tell the character of sir ralph which is present in every human being
Identify the domain and rangewith steps please (picture below)
find the correct sum of these geometric series.. *a1=343, an=-1, r= -1/7 *a1=80, n=7, r= -1/2 *a1= 3, a8=384, r=2 Please help me with these problems.. :(
what is the difference between aquaculture and pisciculture?
Fill in the blank : 1. Earth rotates from ______________ to ________________.
Which is the number, which when squared and added to 12 becomes seven times its value ?