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

What is the interquartile range for the data set??
Does y=-2x + 3 and y=x - 5 intersect on the y or x axis?
what was the significance of the Nuremberg trials
Which of the following is the best example of a supernatural event from Morte D’arthur by Sir Thomas Malory
Which are prime numbers? 1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,16,17,18,19,20,21,22,23,24
Find median and the measures of variability. HELP ME PLEASE!!!! ASAP!!! I AM RUNNING OUT OF POINTS TO REPOST THIS ;(
an equation in slope-intercept form for the line that passes through (4,-4) and is parallel to 3+4x=2y-9
PLEASE HELP WILL GIVE BRAINIEST
A kayak rental company charges a $15 fee to rent a kayak plus $3.50 per hour. Which equation represents the function for the total cost, c, to rent a kayak for
SOMEONE PLEASE ANSWER THIS ASAP FOR BRAINLIEST!!! A numbered item contains a single error or no error at all. Correct the error. There may be more than one way