for this problem i tried the tricky way of using math.pow get the the sum of squares but ran into a double to int error. changing the variable to a double instead of an int produced the wrong answer because it gave me a .0 at the end of the sum.

for( int i=1; i<=10;i++){

int square = Math.pow(i,2);

System.out.print( square + " ");}