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 did Aristotle think was the problem with the end goal of government?
Hey there! You, yes you! Have an amazing day​
What would happen if the cell membrane were only made out of one layer?
CHAPTER II—THE SHE-WOLF, an excerpt From White Fang By Jack London Breakfast eaten and the slim camp-outfit lashed to the sled, the men turned their backs on th
Please help!!! and im giving brainly thx
Write a slope-intercept equation for a line perpendicular to f(x) = −2x + 4 and passing through the point (−4, −1).
find the value of x pls .
State the horizontal asymptote of the rational function. (5 points) worth lots of points!!! f(x) = quantity three x squared minus four x minus three divided by
How do artists become famous and successful today? In a paragraph please
How were enslaved Africans brought to the colonies?