fix is_square.mc

This commit is contained in:
Tobias Wolfgang Kupek 2019-07-01 18:39:48 +02:00
parent 0e6e92f612
commit 8e685768cf

View File

@ -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;
}