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 role do individuals play in a capitalist system?
The extrinsic tongue muscles differ from the intrinsic tongue muscles in that the:
The marked sides have equal lengths.   What is the value of x?
Explain how the career area of respiratory therapy relates to our study of oxygen and lung volumes. provide an example that illustrates your point.
Can I get some help in this question from geometry? I will answer one of your questions!!! :)
How long does it take to get the stomach flu after exposure?
A student was given an assignment to determine the percentage of students that brought a bag lunch to school. The student chose 5 random classrooms and surveyed
T object]user: where do rocks melt? a. on earth's surface b. in earth's outer core c. at depths of about 50 to 200 km below earth's surface d. at depths of
1/2(2g-3)=-4(g+1) show work please do this ASAP
Solve for t. −35=7t What is the answer?