test of 0318

This commit is contained in:
Bluemangoo 2025-03-18 19:28:17 +08:00
parent e16ee1e207
commit b48ed56493
Signed by: Bluemangoo
GPG Key ID: F2F7E46880A1C4CF

23
0318/0.c Normal file
View File

@ -0,0 +1,23 @@
#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;
}