Hi, i am trying to create the function, that will check if the sqrt is integer.
My code is below but it doesnt work.
Thanks
int square_check (int x, int y )
{
float z= sqrt(x+y);
if (z ==(int)z)
return 1;
else
return 0;
}// end function
My code is below but it doesnt work.
Thanks
int square_check (int x, int y )
{
float z= sqrt(x+y);
if (z ==(int)z)
return 1;
else
return 0;
}// end function
Comment