Physics, asked by hhhuuh, 11 months ago

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

Answers

Answered by Anonymous
1

import java.util.*;

public class Series

{

public static void main(String args[])

{

int n,m;

//using for loop

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

{

//using mathematical series of java

m=Math.pow(n,3);

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

}

}

}

Similar questions