test of 0318

This commit is contained in:
2025-03-18 19:28:17 +08:00
parent e16ee1e207
commit b48ed56493
+23
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;
}