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

what elements are involved in hydrogen bonding
PLEASE CHECK MY ANSWERS (PART 2)
A grain storage bin has the following dimensions, 11 feet high, 28 feet long and 12 feet wide. The volume of 1 bushel is 2200 cubic inches or 1.273 cubic fee
how many peanuts will each person get if 3 people share 1/5 pound of peanuts equally write and solve a division equation to represent the problem
why did farmers follow railroads into the texas frontier
1) Elizabeth works part-time to help pay for college. She has worked for the last 14 days without a day off for a total of 48 hours. Depending on her schedu
Brody added a fraction to 5/6 to get 31/30. Use the equation a/b + c/d = (ad +bc)/ bd to find the fraction he added
How are carbon, hydrogen, and oxygen alike?
A sand box has an area of 45 ft. The length is 4 feet longer than the width. What are the dimensions of the sand box? Solve by completing the square
_ is 8% of 200, please help and show work, thanks