The challenge is to write a for loop to print square numbers to the browser that are not divisible by 3. I am not getting the expected output which is 1,4,16,25,49,64,100
<html lang="en">
<head>
<title>Square Numbers</title>
</head>
<body>
<?php
for ($a=1;$a<=10;$a++){
if ($a % 3 != 0){
echo $a * $a . ",";
}
}
?>
</body>
</html>