fix is_square.mc
This commit is contained in:
parent
0e6e92f612
commit
8e685768cf
@ -4,7 +4,7 @@ bool is_square(int n)
|
||||
{
|
||||
int i;
|
||||
i = 0;
|
||||
while(i*i < n){
|
||||
while(i*i <= n){
|
||||
if(i*i == n){
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user