Computer Science, asked by biswadipsarkar4230, 1 year ago

Write a program in java to display the first ten terms of the series: 0,3,8,15,....

Answers

Answered by ritesh200477
7
class display
{
public static void main ()
{
int series=0;
for(int i=1;i<=10;i++)
series=(i*i) -1;
System. out. println(series) ;
}
}
Answered by Knowledgeableat2020
0

Answer:

public class Code

{

   public static void main (String args[])

   {

       for(int a=1;a<=10;a++)

       {

           int b = a*a-1;

           System.out.print( b +",");

       }

   }

}

Similar questions