test of 0318
This commit is contained in:
parent
e16ee1e207
commit
b48ed56493
23
0318/0.c
Normal file
23
0318/0.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user