if (a == 6)
{
printf("enter a numerator and a denominator value\n");
int num, denom,num1;
int whole = num/denom;
num1 = num%denom;
scanf("%d %d", num, denom);
printf("%d %d/%d", whole, num1, denom);
This is part of a program I have to write and it isnt working so is there a better way to write it
The point is to have it write for example: 2 2/4 instead of 10/4