-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_sprt.c
More file actions
23 lines (20 loc) · 991 Bytes
/
ft_sprt.c
File metadata and controls
23 lines (20 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sprt.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lscariot <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/12 10:52:44 by lscariot #+# #+# */
/* Updated: 2015/12/12 10:54:51 by lscariot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_sqrt(int n)
{
int i;
i = 0;
while (i * i < n)
i++;
return (i);
}