# include <stdio.h>
int sqrt(int x)
{
int target = 1;
while (target * target <= x)
{
target++;
}
return target - 1;
}
int main()
{
int n=sqrt(4);
printf("%d\n", n);
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交