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

HEY BESTIES, HOW DOES AN OUTLIER AFFECT THE DISTRIBUTION OF A DATA SET?
In the United States, what is the AVERAGE beef cow herd size? A. 10 head B. 25 head C. 40 head D. 70 head
BEST ANSWER GETS BRAINLIEST!!!!!!! The post-test begins when the machine is hooked up to the examinee. True False
Find the inverse of function f. A.f-1(x)=7x+9 B.f-1(x)=1/9x-7/9 C.f-1(x)=7/9x-1/9 D.f-1(x)=-9x-7
Writing a narrative about overcoming a challenge
Can some please please this question
D 8. In what way did the Treaty of Versailles establish conditions that led to the outbreak of World War 112 sis ASG armare Bain... DOOD anning ad decit A. It c
Escriba los números racionales que corresponden a los puntos A, B, C, D y E que están representados en la recta numérica.
Que realizaron para solucionarlo​
(No links please) There were 2 red marbles, 3 blue marbles and 5 gold marbles in a bag. You pulled out 1 red marble and did not replace it. Find the probability