2025-03-18 20:00:56 +08:00

23 lines
445 B
C

#include <stdio.h>
#define putbool(x) (printf("%s", (x) ? "TRUE" : "FALSE"))
int main() {
int n;
scanf("%d", &n);
{
int i = 1;
while (1) {
int square = i * i;
if (square == n) {
putbool(1);
return 0;
}
if (square > n) {
putbool(0);
return 0;
}
i++;
}
}
return 0;
}