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 do you write this in number form six million, four hundred fifty-two thousand, five hundred sixty-six
PLEASEEEE HELPPPPPPPP!
What was the path and means of transportation of the last group of Cherokee to be moved west?
pls answer giving brainleist
is in the hallway a clause or phrase
What is the denotation of the word gulping? What is the connotation of the word gulping?
How far is the point (12, 5) from the origin
Why does Frederick Douglass describe the whipping of his Aunt Hester? A. to convey the horrible brutality of slavery B. to demonstrate what happens when enslav
If the perimeter of a rectangle is 54 yards and the length is 3 yards longer than the width, then what is the width?
What was the name of colonists who supported the British Crown?