Check for perfect square

Students are entering x values in the table that should be perfect squares and computing y = sqrt(x), how can I check if their x input is a perfect square and provide feedback.

Usually the easiest way to do this is to compare sqrt(x) with round(sqrt(x)) - either Boolean to see if they’re equal, or subtract one from the other to see if you get exactly zero.

…or divide and is 1.

Thank you!! Great ideas. I am going to try both and see.