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

Describe the differences between a prokaryotic and a eukaryotic cell, and identify their parts.
Lily and julian start with the same number. Lily works out half the number and Julian works out 3 quarters The sum of their answers in 275 What was the startin
How long does interphase last?
Write an algebraic expression that is equivalent to the expression. cos⁡(arcsin⁡ (x-h)/r )
what does the surface area represent in a cell
2b^2+4b–2=0 what is the answer?
name three roles you play in your relationships with others. explain when you play each role.
what was Margaret Brent accomplishments
The crew on fishing boat caught four fish weighing a total of 1092 pounds. The tarpon weighed twice as much as the amberjack and the white marlin weighed twice
Why do you think the governments of the United States and other countries encouraged people on the home front to organized programs for such activities as scrap