Implemented C program to manage fractions