first commit
This commit is contained in:
12
ended/C01/ex04/ft_ultimate_div_mod.c
Normal file
12
ended/C01/ex04/ft_ultimate_div_mod.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void ft_ultimate_div_mod(int *a, int *b)
|
||||
{
|
||||
int f;
|
||||
int g;
|
||||
|
||||
f = *a;
|
||||
g = *b;
|
||||
*a = f / g;
|
||||
*b = f % g;
|
||||
}
|
Reference in New Issue
Block a user