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 other factors made the journey west challenging
Which of the following was NOT one of the branches of Roman government? Senate House of Representatives Magistrates Assemblies and tribunes
Please help me asap please
Cells are the basic units of structure and function in living things. Why are cells the basic units of function in living things? A) Living things change cells
3. Learning that germs caused disease was a in treating sick people. a. character b. perspectives c. blemishes d. breakthrough Which word from the vocabulary li
f( x) = 3 x + 2 and g( x) = 2 x + 5. Find f ∘ g(5) Please show your work
please help need answer
Solve for y:2x+2y=6 A) y=-x+3 B) y= 2x + 6 C) y=x+3 D) y=-2x + 6
Part B How did you determine the types of cell division for both phases depicted in your model? Explain your answer.
BRAINLIST!!!!! Make a list of ten words with similar sounds that could be used to describe one of the scenes above. Then write a short descriptive poem using th