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

P^-8/ 7^-2 • 9^-9 Helpppppp
Each cube in the prism is one cubic unit. What is the volume of this rectangular prism?​
Schools that prepared men and women with the necessary skills to become teachers
A rectangular prism has a length of 114 centimeters, a width of 4 centimeters, and a height of 314 centimeters. What is the volume of the prism?
40. The state of matter with definite shape and definite volume A. Gas B. Liquid C. Solid
2. The output of this system is what type of motion? (rotary, reciprocating, or linear)
What is the slope of a line perpendicular to the line whose equation is x + 3y = -12. Fully simplify your answer.
help me please i need help
Match each correlation coefficient to the appropriate scatter plot. The line in each scatter plot is the least squares regression line. fo1 80- 52 504 40 3 30 2
Based on the balanced equation below, what is the mole ratio of HCl to VOC13?