int b=0;
for( int i=1;i<=5; i++)
{
b=(i*i*i)-1;
System.out.print(b+",");
Answers
Answered by
1
Answer:
CODE:
public class Main
{
public static void main(String[] args) {
int b=0;
for( int i=1;i<=5; i++)
{
b=(i*i*i)-1;
System.out.print(b+ ",");
}
}
}
so here is your output for the give code:
0,7,26,63,124,
Explanation:
I hope it helped you
Similar questions