Computer Science, asked by ANANDIKSHA9464, 10 months ago

Sum the series 1+(1+2)+(1+2+3)+....(1+2+3+4....+10) terms.

Answers

Answered by sujalagarwal0987
1

Answer:

in Java.....

public class series

{

public static void main()

{int a=0;

for(int i=1;i<=10;i++)

{

s+=i;

}

Sopln(s);

}

}

mark me as the brainliest

Answered by Anonymous
4

Explanation:

class series

{

p.s.v.m.(int n)

{

int i,s=0,sum=0;

for ( i=1; i<=n;i++)

{

s=s+i;

sum=sum+s;

}

S.o.pln(sum)

}

}

Similar questions