ok so i read the fgets and have tried to input that into my code. i just don't know where to put it. and now i am super confused. heres what i have now and i know its wrong. if you could offer more guidiance i would appreciate it. ty

Code:

/* Prompts for and inputs a fraction with input verification */
void inputFraction(int *numerator, int *denominator)
{
char ch;
char buffer[100];
fgets(buffer, sizeof(buffer), stdin);
buffer[strlen(buffer) - 1] = '\0';
printf("Please enter a fraction (a/b): ");
scanf("%d/%d", *&numerator, *&denominator);
if ((numerator && denominator) == ch)
{
printf("Plese enter a valid fraction!");
inputFraction(numerator, denominator);
}
}