Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void putint(int a)
- {
- printf("%i", a);
- }
- int main()
- {
- int a = 50;
- int b = 10;
- int div = 0;
- int mod = 0;
- ft_div_mod(a, b, &div, &mod);
- printf("%i, %i", div, mod);
- }
- void ft_div_mod(int a, int b, int *div, int *mod) {
- *div = a / b;
- *mod = a % b;
- //printf(div);
- //printf(resdiv);
- }
Advertisement
Add Comment
Please, Sign In to add comment