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

how can we show the data that is collected
30 points! (question in the image)
Find the distance between the pair of points A(7,8) B(-8,4)
Wildflowers are plants that grow on the forest floor. During a study, a scientist observed that wildflowers began to bloom before the leaves appeared on the ta
6. If find each measure.
An IT department receives a shipment of 20 new computers, and Alice has been assigned the task of preparing them for deployment to end users. The first thing sh
Write 3.3 as a mixed number
If you have $20 and spend $12 on food, what fraction of your money do you still have?
Use what you know about valence electrons and the octet rule to explain why alkali metals are more likely to lose electrons than gain them.
Convert 3.56 g to cg