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

I need this please help me
If a cell contains 24 sister chromatids in prophase, how many chromosomes will be present in each cell at the end of mitosis?.
________ delivers business intelligence to users without any request from the users.
For a company picnic, liam ordered a box of fresh-baked gingerbread cookies and sugar cookies. the box included a total of 35 cookies, and 20% of them were ging
According to your text, what is the most likely result of the buy-online-and-pick-up-in-store option?.
How do plants get energy from the sun?
I am creating a study guide and need help with step by step explanation of this question please
Which provision of the treaty of versailles caused the u. S. Senate to reject the treaty?.
10) Which best describes the end of the war in Europe?
Two men wearing black suits and black top hats. they are facing the same direction and one of the men is leaning over the other's shoulder to speak in his ear.