I need to know if the sum of two numbers is a perfect square, I thought of adding the two and taking the root and then checking if the rest of the division by 1 is greater than zero, except that the operator (%) only works with integers and sqrt does not return me int, someone has a better idea or knows how can I build my own MOD function?
if(sqrt(a+b)%1==0) ...