Write a program to find the following series upto 10 terms:
1,8,27
Answers
Answered by
6
import java.util.*;
public class Series
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int a,i;
for(i=1,i<=10,i++)
{
a=i*i*i;
System.out.println("The series is"+a);
}
}
}
Similar questions
Math,
6 months ago
Business Studies,
6 months ago
Business Studies,
1 year ago
Science,
1 year ago
Biology,
1 year ago