-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_decilen.c
26 lines (23 loc) · 1.01 KB
/
my_decilen.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* my_decilen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anel-bou <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/31 14:03:39 by anel-bou #+# #+# */
/* Updated: 2019/07/17 15:25:52 by anel-bou ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int my_decilen(unsigned long long int n)
{
int i;
i = 1;
while (n > 9)
{
n /= 10;
i++;
}
return (i);
}