Computer Science, asked by mercy2, 1 year ago

write a program to print the sum of the following series:
0,3,8,15,...........................80

Answers

Answered by shanaya41
0
3, 8, 15, 24, 35, 48, 63, 80

mercy2: it is not the way to do it
mercy2: i think u have not read the question properly
shanaya41: means
mercy2: u hav to write in computer language
Answered by tamaghnadey1916
0

Answer:

class cal

{

public static void main ()

{

int s=0,i=1;

while (s!=80)

{

s=s+(i*i-1);

i++;

}

System.out.print (s);

}}

Explanation:

I hope it helps you

Similar questions