This is a time when posting an example run would be helpful to explain what you're asking for help with. So when I run your code for the fractions you suggest, I get:

Enter numerator
1
Enter...