Computer Science, asked by eakansh2006, 7 months ago

how to write as prongramm for 1 4 9 16 25 36 49 64 using do while loop

Answers

Answered by krishang59
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