Computer Science, asked by arpitthegamer8069, 1 year ago

Write a program in small basic to print the series 1,8,27,64,....up to 10 terms.

Answers

Answered by kumarprateek1901
0

Answer:

class program

{

void main() {

int c=0;

for (int i=1;i>0;i++)

{

System.out.println(i*i) ;

if(c==10)

break;

}

}

Explanation:

Similar questions