[ create a new paste ] login | about

Link: http://codepad.org/s5zdq5zR    [ raw code | output | fork ]

C, pasted on Oct 16:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include<math.h>
int main() {
    long a;
     scanf("%d",&a);
    if(a%sqrt(a)==0){
        printf("YES");
    }else
    
   printf("NO");
 return 0;
}


Output:
1
2
In function 'main':
Line 6: error: invalid operands to binary %


Create a new paste based on this one


Comments: