zsdrfhn zsdrfhn
  • 03-01-2021
  • Computers and Technology
contestada

write a program to print the sum of series
1/2+3/4+5/6+/8+.......19/20

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-01-2021

numerator = 1

denominator = 2

total = 0

while denominator != 20:

   total += (numerator/denominator)

   numerator+=2

   denominator+=2

print(total)

I wrote my code in python 3.8. Best of luck.

Answer Link

Otras preguntas

PLZ help ASAP wrong answers will be reported
1) 3n² + 5n +7 A) quadratic monomial B) cubic binomial C) constant trinomial D) quadratic trinomial
Mr. Bucci goes to the grocery store and purchases 17 bags of raisins and a $2.97 jar of peanut butter. His total cost was $34.76. What was the cost for a bag of
Brahmin priests originally had to memorize the Vedas. Why didn't they write them down until later?
Very rapid (i.e. in 1-2 seconds) responses to maintain normal blood pressure during a sudden decrease in blood volume by hemorrhage can be initiated by Group of
PLEASE!! can someone send me an unused rbx gift card for 10 points
How many grams are in 1.2 x 10^24 atoms of sodium?
The volume of a cylinder is 65 cubic centimeters. Which equation can be used to find h, the height of the cylinder? A. h = 65/b, where B is the base area of th
Please help I will mark brainliest
"If a thousand [citizens] were not to pay their tax-bills this year, that would not be a violent and bloody measure, as it would be to pay them, and enable the