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

432 square feet 2/3 is with what's the length
Rewrite 0.8 as a fraction in simplest form.
the reason tropical deforestatio is worse than temperate deforestation is because there is a. there is more carbon in the ground in temparate forests b. mor
a number has the digits 2, and 4 to the nearest 100. the number rounds to 200 what is the number
In “Those Winter Sundays,” the narrator’s recalls his life at home as a child as anything but pleasant. However, when looking back years later, he realizes: a)
What is the direct object in the sentence? Logan studied rocketry in science class. A. rocketry B. science C. class D. studied
Which of the following serve as enzymes?
Rewrite 26/4 as a mixed number in simplest form.
how was adolf hitler different from joseph stalin ?
When the newly unified Germany was under Wilhelm I and Bismarck. what was it known as?