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

which seismic wave moves through earth at the fastest speed?
Which of the kingdoms has the smallest number of known species
“The genetic code is universal.” Explain this statement.
How do scientists use seismic waves to determine the interior structure of Earth?
“The genetic code is universal.” Explain this statement.
Find the value of x.  Round to nearest hundredth if necessary.
How do you Factor c(squared)-8c ??
Dominick lives 1 3/4 miles from his school.  If his mother drives him half the way, how far will Dominick have to walk to get to school?
A farmer hauled in 120 bales of hay. Each of his cows ate 1 1/4 bales. How many cows the farmer feed?
Explain how a species can evolve through natural selection.