-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_iseven.c
20 lines (18 loc) · 985 Bytes
/
ft_iseven.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_iseven.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lmartine <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/03/10 21:56:15 by lmartine #+# #+# */
/* Updated: 2018/03/10 21:58:45 by lmartine ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_iseven(int c)
{
if ((c % 2) == 0)
return (1);
return (0);
}