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

Is Freedom and War synonyms
What does an alpha particle consist of?
Eighty percent of the class passed with a 75 or higher. if that percent equaled 24 students, how many students were in the whole class
Do all organisms which carry out photosynthesis have chloroplasts ? Explain your answer as fully as you can.
Which choice best describes the biggest impact of Jonas Salk's work with poliomyelitis? Jonas Salk became a professor of medicine and the head of the Institut
All of the statements about the nitrogen cycle are true EXCEPT one. That is A) lightning breaks nitrogen molecules so it can combine with oxygen. B) putting ma
What does the slope mean
what is the scientific name of a physician that deals with the nervous system?
Help all of these please?
A coach is purchasing some baseballs and a baseball bat. The baseballs cost $7.50 each. The bat costs $26. The coach has $84. What is the greatest number of bas