Sum the series 1+(1+2)+(1+2+3)+....(1+2+3+4....+10) terms.
Answers
Answered by
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
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
Computer Science,
5 months ago
Social Sciences,
5 months ago
History,
5 months ago
History,
10 months ago
Science,
1 year ago
Social Sciences,
1 year ago