0
I’m having trouble writing two variables of type unsigned char using scanf, only the second value is saved in variable, I imagine it is buffer with garbage tried to treat and even so did not succeed, follow my attempt someone can help would be nice
unsigned char dividendo = 0;
unsigned char divisor = 0;
unsigned char c = 0;
// entradas do usuario
printf ("\nDenominador:\n>> ");
scanf ("%d", ÷ndo);
printf ("\nDivisor:\n>> ");
while((c = getchar()) != '\n' && c != EOF);
scanf ("%d", &divisor);