diff --git a/0318/0.c b/0318/0.c new file mode 100644 index 0000000..31aafd9 --- /dev/null +++ b/0318/0.c @@ -0,0 +1,23 @@ +#include +#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; +} \ No newline at end of file