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

Ronald Reagan majored in _____________ and ___________________ while in college.
which value correctly represents the number that is 10 times as great as five hundred eighty-one thousandths?
What is 0.003is 1/10 of
what number is 100,000,000 more than 5,438,724,022?
plz help.Four sisters bought a present for their father. they received a 10% discount on the original price of the gift. After the discount was taken, each sist
How do I simplify 9/243
divide 18 cups if flour into two groups so the ratio is 4 to 5
Absolute value inequality.                                                               |2w-5|  ((is less than or equal to))  5
Square root 2 is between 1.4 and 1.5
Emma and jamie used base-ten blocks to show that 40 is one-tenth of 400