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

Please help Drag the tiles to the correct boxes to complete the pairs. Match each division of rational expressions with its quotient.
What is the difference between Die, Das, and Der?
Question: If an electric train is moving north at 100mph and a wind is blowing to the west at 10mph, which way does the smoke blow?
Difference between rock forming Minerals and non rock forming minerals
Marine biology I need this as fast as you can please and thank you. 20 points.Formerly classified under algae, (*blank*) are a group of organisms that biologist
After cutting a piece 1.65 m long from a piece of cable, the remaining piece is 3.50 m long. How long was the cable originally? _____
7. Answer each of the following questions if the student applied a 550N force to a 100kg box on the same surface. What would be the magnitude of the box's accel
Which Statement best completes the diagram? Cause Effect ? Confucius calls for a new social order
List or circle the possible values that satisfy each inequality.
could someone please help me with #7 and #8?