#include <stdio.h>

void	ft_ultimate_div_mod(int *a, int *b)
{
	int	temp;

	temp = *a;
	*a = *a / *b;
	*b = temp % *b;
}
int	main(void)
{
	int	num1 = 10;
	int	num2 = 5;

	ft_ultimate_div_mod(&num1, &num2);
	printf("Q : %d \n", num1);
	printf("R : %d", num2);
	return (0);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: