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

Most people pay federal income tax by
how did the police respond to protestors at the democratic national convention in 1968?
to what extent can the people of the Philippines participate in the governing process
Why are raman spectra plotted from high to low wavenumber?
Admitting Missouri to the Union would have maintained the balance of power in Congress. tipped power in Congress in favor of the free states. tipped power in
Give a definition for the term: media bias. What is its use?
In 1948 professors at the university of washington in seattle faced dismissal when suspected of being science forums
What happens to an object as it absorbs radiant energy? A Its temperature increases. B Its temperature decreases. C Its thermal energy decreases. D Its potentia
Due tomorrow I need the answer for this problem. Please help
The height of a box is 3 inches. The length is three inches more than the width. Find the width if the volume is 390. Select one: A. 13 in. B. 130 in. C. 10 in.