Advertisement
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 = 11;
- ft_div_mod(&a, &b);
- printf("%i, %i", a, b);
- }
- void ft_div_mod(int *a, int *b) {
- int tmp1;
- int *tmp;
- tmp = &tmp1;
- *tmp = *a / *b;
- *b = *a % *b;
- *a = *tmp;
- //printf(div);
- //printf(resdiv);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement