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

substance that accelerates any chemicl reaction but is not consumed in the action
A car rental is $220 per week plus $0.25 per mile. find the rental cost for a two week trip of 500 miles for a group of three people.
you download a digital album for $10. Then you and your friend download the same number of individual songs for $0.99 each. Write a system of linear equations t
proposed by a ballot initiative
What is the best choice for why agrarian societies included gender inequality? A. Hunter-gatherer groups would be more casual with equal treatment of men and wo
Connection between dharma karma and samsara
Because of a lacking of chlorine, the school had to close the swimming pool Which word means the same as lackinh and completely replaces it in the sentence?
DO YOU READ A BOOK. change into present perfect
Older men and women appear to be very similar in their ____ values, or the amount of time they spend and the degree of satisfaction they get in helping or pleas
the federalists often favored britain because they