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

if branch can be used to compute an absolute value of a number. a) Trueb) False
đá cắt trong máy cắt được làm từ vật liệu gì vì sao?
Write at least ONE paragraph to describe the Wave experiment.
(2+5)-4 to the power of 2
If angle 4=135 degrees, find the measure of each angle below? 1) ∠3 2) ∠1 3) ∠5
In the context of Hofstede's four dimensions, the _____ Index measures the tolerance of social inequality within a social system? 1) Individualism/Collectivism
Select the statement that describes what an ion-selective electrode (ISE) measures. A. ISE measures the pH of a solution. B. ISE measures the concentration of
WHAT IS THE MEANING OF THE PHRASE IN THE PEOM "THE HEART THAT FED" ? OZYMANDIAS PEOM CLASS 11 ENGLISH PLEASE ANSWER IN EASY WORD
Write an equation in point-slope form for the line through the given point with the given slope. (10, -6); m = -5/8 1. y - 6 = - 5/8 (x - 10) 2. y - 6 = - 5
la democracia fue un sistema político que apareció en la polis de Atenas​