Posts by Wendell Ferreira dos Santos • 1 point
2 posts
-
-1
votes3
answers146
viewsA: Perfect square, not so perfect
I found a solution: int raiz_int = sqrt(a+b); double raiz_double = sqrt(a+b); if (raiz_int == raiz_double) ... ; else ... It’s not the best way but it’ll do…
-
0
votes3
answers146
viewsQ: Perfect square, not so perfect
I need to know if the sum of two numbers is a perfect square, I thought of adding the two and take the root and then check if the rest of the division by 1 is greater than zero, only the operator…