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

Evaluate 6j+23+kl−3, when j=3, k=7, and l=33. Enter your answer in the box.
Read the sentence. Some students may find the test difficult. What is the verb phrase? students may find the test may find some students
What were the two main reason that led to the government shutdown
What does it mean for two figures to be identical? How can you be sure they are identical?
how can we enhance nationality. Plz help.
The variability we expect to see from one random sample to another is called ___________ .
Identify the corresponding word problem given the equation: x - 9.2 = 12.8 A) Nick ran 9.2 miles less than Perry last week. If Nick ran 22 miles, how many mi
Read this passage: The city has put on a film festival every May for the past five years. However, it is time for the film festival to stop. Every year, crowds
is 3.6666.... a rational number? explain
Almost every cell in the human body is replaced every few years through the process of _____.