Write a program in Java with loop to generate the series up to 10 terms:
0,3,8,15,24,35
Answers
Answered by
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
Science,
7 months ago
Computer Science,
7 months ago
Physics,
1 year ago
English,
1 year ago
Science,
1 year ago