Math, asked by hhhuuh, 1 year ago

Write a program to find the following series upto 10 terms:
1,8,27

Answers

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;

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

{

a=i*i*i;

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

}

}

}

Similar questions