Computer Science, asked by Kristen3297, 1 year ago

write a program in java to display the first ten terms of the following series: 0, 7 , 26

Answers

Answered by mn121
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 maghaananthi
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