write a program in java to display the first ten terms of the following series: 0, 7 , 26
Answers
Answered by
21
public class series
{
public static void main(String[] args)
{
int i,n;
for(i=1;i<=10;i++)
{
n = (i*i*i)-1;
System.out.print(n+" , ");
}
}
}
Hope it helps you...
Please mark it as brainliest...
☺️☺️☺️
Answered by
0
Answer:
class series
{
public static void main(String[] args)
{
int i,n;
for(i=1;i<=10;i++)
{
n = (i*i*i)-1;
System.out.print(n+" , ");
}
}
}
Similar questions