Dashboard Temp Share Shortlinks Frames API

HTMLify

Q367_Valid_Perfect_Square.c
Views: 472 | Author: djdj
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
bool isPerfectSquare(int num){
    int r;
    #include<math.h>
    r = pow(num,0.5);
    if(r*r==num)
    {
        return true;
    }
    else{
        return false;
    }
}