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

How was the culture of the Phoenicians similar or different to other ancient river civilizations?
According to "How to Eat an Ice-Cream Cone," what is the most dangerous part of buying an ice cream cone
Please select the word from the list that best fits the definition caer
Which statement correctly describes the relationship between the graph of f(x) and the graph of g(x)=f(x)-1?
Water seeps into rock cracks and dissolves minerals there. The solution travels through cracks in the rocks, eventually concentrating into large crystals." The
Which isn’t important risk factor for drug abuse ?
Which would have more fuel. Replacing a small car which gets 33 mpg with a hybrid which gets 50 mpg or replacing a suv which gets 12.5 miles per gallon with a s
Organelle centrioles job discription
how does traiff discourage trade
allen has a debt of 500$.He owes equal amounts to 10 different people. Express his debt to one person as a negative number.