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

Who were considered citizens in ancient Athens? women men slaves all Athenians
1. Is there a dependency ratio in this country? If so, what is it? 2. Is there a graying population? How do you know?
FREE BRAINLY PLZ HELP 50 PTS!! Simplify -5(20 + 3) -115 -103 85 -97
helpppp im going to get in troubkle by my mom if i dont finsh my work im going to be grounded from my phoneeeeeeeeeee
What ratios are equivalent to 4:3
Which of the following is a correct way to name this angle? B А. САВ B. 2 ACB С. СВА D. BCA
josh wants to by 15 pounds of shrimp and 10 pounds of crawdads.he has 4 buckets tht can each hold 6 pounds ,how many shrimp and crawdads will not fit in the buc
Solve for m. Reduce any fractions to lowest terms. Don't round your answer, and don't use mixed fractions. 8m + 95<-87m + 5
what number is equal to 4/2
Can you answer this math homework? Please!