You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
int sqrt(int nb)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
if (nb < 0)
|
|
return (0);
|
|
while (i < 46341 || i < nb)
|
|
{
|
|
if (i * i == nb)
|
|
return (i);
|
|
i++;
|
|
}
|
|
return (0);
|
|
}
|