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

Should secret wiretapping be legal
The difference of 8 and the quotient of a number and 6 is 9
write a number with an 8 in hundreds place
what is half of 5.20
how much is 77 divided by 5
A _____ chart provides a simple way to show trends and variations in a range of data within a single cell
Americans were angry with France during the presidency of John Adams because __________.
Americans were angry with France during the presidency of John Adams because __________.
What did the Supreme Court rule in the Plessy v. Ferguson case in 1896? A. The 13th, 14th, and 15th Amendments were unconstitutional. B. Jim Crow Laws were unco
What is the value of the 4 in 6.54