Computer Science, asked by harshithadn, 2 months ago

write a program to find the sum of number in the following series
1 4 10 19 34 52 73 100....N

Answers

Answered by brainlistpro
0

Answer:

Javascript program :

Explanation:

N = last term;

n = 1;

m = 3;

while( n <= N ){

n+=m;

m+=3;

}

alert(n);

Similar questions