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

in a (n) _____, the ruler is both a political and religious leader.
Under which circumstances would protesters’ right to assembly most likely be protected? if protesters were picketing on an alleged criminal’s front lawn if prot
how many letters do we have in Monday ?
samuel has 42 pesos in his pocket which is equal to 35% of his friend's money. how much is his friend's money?
How can a poem be an analogy for how historians often interpret the same event in a variety of ways? Explain.
You are a sales rep for a large sheet metal manufacturing firm and want to sell off some scrap metal. Company A has offered you $13.50 a pound, and it will cost
PLEASE HELP ASAP!!!!!!
unit 8 right triangles and trigonometry homework 3 similar right triangles and geometric mean
if lin runs 24 laps at the same rate how long does it take her
WHO WANTS TO HELP ME WITH MATH??