-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_small_square.c
23 lines (20 loc) · 1005 Bytes
/
ft_small_square.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_small_square.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: afillion <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/09 15:57:24 by afillion #+# #+# */
/* Updated: 2015/12/16 14:37:22 by afillion ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
int ft_small_square(int i)
{
int n;
n = 2;
while (i * 4 > n * n)
n++;
return (n);
}