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

On the day of a child's birth, a parent deposits $35,000 in a trust fund that pays 4% interest, compounded continuously. Determine the balance in this account o
maggie had $4 in her wallet. If this is 16% of her monthly allowance, wha is her monthly allowance?
Question 4 of 10 Rosa is buying a $190,000 home. She has decided to purchase 2 points in order to lower her interest rate. The appraisal fee is $450, the proces
What fills the medullary cavity of the tibia of a three-year-old?.
please help. i will mark you brainleist ​
what is the value of x when [tex]6(\sqrt{4x^{2} + 1 } = 13x[/tex]
What degree do you need to have for a pediatric physical therapist.
What type of bond is formed when two oxygen atoms are bonded?.
Which type of language should a writer use to describe something accurately?.
Mary worked for a GM factory in Detroit all her life. Unfortunately, when GM closed the plant because of restructuring, she could not find any jobs in the autom