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 verb agrees with its subject? The poodle and the Border collie __________ two of the smartest breeds of dogs. A. was B. has been C. is D. are
Mao Zedong instituted this failed policy which aimed to increase China's industrialization by producing basic industrial products, such as iron and steel.
Which of the following class names shows correct capitalization? A. Theater appreciation 2A B. theater appreciation 2a C. Theater Appreciation 2A D. theater
What type of literature combines the amusing and the grim sides of life?
I need help on my math question please
8 1/2 is an example of an improper fraction. true or false?
In the poem, the phrase "sill of shade" refers to . The narrator of this poem is
Niels Bohr proposed his model of the atom about ________ years ago.
Do the romans seem better or worse off under their new rulers than they were under Julius Caesar
What are the Connotations of the word 'blister'?