Heres a partial view of my code.
I need help on what command to put where it says (/*test for perfect square) of the sums of X's and Y's. The numbers have to be between 1-20. Thanks in advance.
Code:
cout << "sqrt(x*x + y*y) = " << "sqrt(" << x*x << " + " << y*y << ") = " << sqrt(x*x+y*y) << endl; if(/*test for perfect square*/) cout << true; else cout << false; return 0; }
Comment