how do i write a function that wil reduce the fraction in the out put ... heres my source code.

#include <stdio.h>

/*global declarations*/

typedef struct

{

int numerator;

int denominator;

} FRACTION;

/*prototype declarations*/

FRACTION getFr (void);

FRACTION multFr (FRACTION fr1, FRACTION fr2);

FRACTION divFr (FRACTION fr1, FRACTION fr2);

FRACTION addFr (FRACTION fr1, FRACTION fr2);

void printFr (FRACTION fr1,

FRACTION fr2,

FRACTION result,

FRACTION conclude,

FRACTION sumup);

int main (void)

{

FRACTION fr1;

FRACTION fr2;

FRACTION res;

FRACTION con;

FRACTION sum;

/*statements*/

fr1 = getFr ();

fr2 = getFr ();

res = multFr (fr1, fr2);

con = divFr (fr1, fr2);

sum = addFr (fr1, fr2);

printFr (fr1, fr2, res,con,sum);

return 0;

}

/*===========getFr==========*/

FRACTION getFr (void)

{

/*local definitions*/

FRACTION fr;

/*statements*/

printf("Write a fraction in the form of x/y: ");

scanf ("%d/%d", &fr.numerator,&fr.denominator);

return fr;

} /*getFraction*/

/*==========multFr==========*/

FRACTION multFr (FRACTION fr1,

FRACTION fr2)

{

/*local variables*/

FRACTION res;

/*statements*/

res.numerator = fr1.numerator * fr2.numerator;

res.denominator = fr1.denominator * fr2.denominator;

return res;

}/*multFr*/

any help would be appreciated ..... thanks