/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_div_mod.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: whaffman +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/05 16:25:25 by whaffman #+# #+# */ /* Updated: 2024/06/05 16:38:01 by whaffman ### ########.fr */ /* */ /* ************************************************************************** */ void ft_div_mod(int a, int b, int *div, int *mod) { *div = a / b; *mod = a % b; } /* #include int main(void) { int a = 12; int b = 10; int div = 0; int mod = 0; ft_div_mod(a, b, &div, &mod); printf("from %d and %d the div is %d and the mod is %d", a, b, div, mod); return (0); } */