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

At a computer​ store, a customer is considering 8 different​ computers, 9 different​ monitors, 6 different printers and 3 different scanners. Assuming that each
how do you schedule your time so that you’re successful?
In the triangle below, what is the tangent of 60?
Given that (-2,7) is on the graph of f(x), find the corresponding point for the function f(x + 4).
In this discussion, you will justify the dependence of life on the sun and the interdependence of living things and their chemistry. People who do not understan
How osmosis takes place in animal cell ?
Douglas County sought bids for a construction project. Robert Taggart wanted to submit a bid but knew the project needed rock. He talked with some owners of a r
2 PointsIf f(x) = x + 8 and g(x) = -4x - 3, find (f+ g)(x).O A. (f+ g)(x) = -3x + 5O B. (f+ g)(x) = 5x + 11O C. (f+g)(x) = -5x - 11O D. (f+ g)(x) = 3x - 5SUBMI​
Sarah and First Financial Corp. enter into an oral employment contract under which First Financial Corp. agrees to hire Sarah for five years. Before Sarah begin
If 0.360 J of heat is added to 0.7402 g of water, how much will the temperature increase?