write a program to produce the following output
0
0 1
0 1 4
0 1 4 9
0 1 4 9 16
0 1 4 9 16 25
Answers
Answered by
0
Answer:
for(int i=0; i<=5; i++ )
{
int temp;
for(int j=0; j<=i; j++ )
{
temp=j;
System.out.print( temp*temp );
}
System.out.println();
}
Similar questions
Social Sciences,
17 days ago
Physics,
17 days ago
Math,
17 days ago
Computer Science,
8 months ago
English,
8 months ago
English,
8 months ago