how to write as prongramm for 1 4 9 16 25 36 49 64 using do while loop
Answers
Answered by
2
Answer:
for loop to generate “1,4,9,16,25,36,49,64,81,100”
class series
{
public static void main(String[]args)
{
int i,j;
for(i=1; i<=10; i++) {
j=i*i;
System.out.println(j);
}
}
}
Similar questions