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 famous lawyer defended John Scopes, who was arrested for teaching evolution in a Tennessee high school? A. Clarence Darrow B. Mitchell Palmer C. William H
Early Renaissance music was much more complex, more fragmented, and more dissonant than that of the Middle Ages. True False
Which best describe the tenets of the Bush Doctrine of the early 2000s? multilateralism, Realpolitik multilateralism, idealism unilateralism, Realpolitik unilat
what is 39:60 as a fraction, decimal, and a percent?
Find the X and Y intercepts (-4,-3) (1,6
Environmental wellness can best be described as Answer finding purpose in human existence. goal setting and finding meaning in your daily activates. knowledge a
a device that does work in an electrical circuit
The language of Afrikaans was influenced by all of the following languages except __________. A. Dutch B. African languages C. American Indian languages D. Engl
After World War II, the French colony of Indochina exploded into warfare as Ho Chi Minh and his followers battled for independence from France. Which of the fol
Find all the powers of 3 that are in the range 3 through 1000