Physics, asked by arre29, 11 months ago

Write a program to display the series upto 10 terms:
3,10,29...........................................

Answers

Answered by Anonymous
6

import java.util.*;

public class Series

{

public static void main(String args[])

{

int a, i;

for(i=1;i<=10;i++)

{

a=(a*a*a)+2;

System.out.println("Display the series"+a);

}

}

}

Answered by Anonymous
6

import java.util.*;

public class series

{

public static void main(String args[])

{

Scanner in=new Scanner(System.in);

int a,i,b;

//using for loop

for(i=1;i<=10;i++)

{

//using do while loop

//using mathematical class

a=Math.pow(i,3)+b;

While

{

b=2;

}

System.out.println("The series is"+a);

}

}

}

Similar questions