Computer Science, asked by JoyeetaDas, 8 months ago

write a program to find the sum of the series:1/2+3/4+5/6...19/20​

Answers

Answered by habibqureshii
4

Answer:

Import java.util.*;

class series{

static void main(){

int s=0,l=0;

int i,j=2;

for (i=1;i<=20;i++){

l=(i*i)-2/j*j;

}

s+=l;

System.out.println(" the sum

is : "+s);

}

}

Answered by Anonymous
2

Hey Buddy

Here's the Answer

-------------------------------------------

Below program is in c

float a = 1.0 ;

float sum = 0;

sum = ( x / (x+2) );

for( x = 3; x < 21; x++)

{

sum = sum + ( x / (x+2) );

x = x + 1;

}

printf(sum);

PEACE

STAY AT HOME, STAY SAFE

:)

Similar questions