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

A waterbed filled with water has the dimensions 8.5ft by 7.5ft by 9.5inches. Taking the density of water to be 1.00 g/cubic centimeter, determine the number of
Using sticky notes to write notes in the text is one technique you can try if you don't own the text ? True or False
Someone help I have no clue :(
The length of a rectangle is 3 m less than twice the width, and the area of the rectangle is 14 m2 . find the dimensions of the rectangle.
A bulldozer is rented at 800$ per day plus a charge per house of use.The bulldozer was used for 5 hours on a day, and the total charge was $3000.
A car that costs $52,400 depreciates at the rate of 9.8% every year. how much in total, to the nearest cent, will the car depreciate after 10 years?
I need to find the factor of the polynomilas for the following problem -a3-100a
What is the negative usted command of respirar
13°38'35" to decimal degrees
Miss Brown gave _____ students an assignment. A. We B. Us