Computer Science, asked by yoarpits1719, 11 months ago

Write a program in Java with loop to generate the series up to 10 terms:
0,3,8,15,24,35

Answers

Answered by garywalter1221
1

the logic is very simple


take the variables

n=range

i=loop

s=storing purpose



logic



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

{

    s=(i*i)-1;

    System.out.print("series="s);

}


Similar questions