Write a program in java to display the first ten terms of the series: 0,3,8,15,....
Answers
Answered by
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) ;
}
}
{
public static void main ()
{
int series=0;
for(int i=1;i<=10;i++)
series=(i*i) -1;
System. out. println(series) ;
}
}
Answered by
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
History,
6 months ago
Chemistry,
6 months ago
CBSE BOARD XII,
6 months ago
Math,
1 year ago
English,
1 year ago