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

3.Which of the following freedoms does the First Amendment include? A.the freedom to bear arms and the freedom of speech B.the freedom of assembly and the freed
kira is drawing a map of her state with a scale of 1 inches 30 miles the actual distance between park city and gatesville is 80 miles how far from gateville sho
What happens before mitosis occurs
carol drives her daughter to school at an average rate of 30 miles per hour, but only goes an average rate of 20 miles per hour on the way home because of traff
name at least 4 things our atmosphere does for us
I REALLY NEED HELP WITH THIS CHEMESTRY PROJECT. I DO NOT UNDERSTAND ANYTHING OF THIS. CAN YOU GUYS PLZ HELP ME? Problem: You and your team work at Southern Nev
Nixon had a true interest in international affairs. True False
what is the value of the expression 3z-3 when z=7
The cost of manufacturing a printer is $35. The manufacturer has a markup of 15% when selling to a retailer. The retailer has a markup of 30%. what is the selli
Sickle-cell anemia is a genetic disorder of the blood in which the shape of red blood cells is distorted, resulting in a variety of health problems. The allele