#include<stdio.h>
#include<conio.h>
#include "rtnl.h"// included in attachmentvoid main()
{
clrscr();
Rational r1,r2,sum,sub,mul,div;
printf("\nEnter the First Rational Number.");
r1=getRational();
printf("\nEnter the Second Rational Number.");
r2=getRational();
sum=addRational(r1,r2);
sub=subtractRational(r1,r2);
mul=multiplyRational(r1,r2);
div=divideRational(r1,r2);
printf("\nADDITION IS : ");
displayRational(sum);
printf("\nSUBTRACTION IS : ");
displayRational(sub);
printf("\nMULTIPLICATION IS : ");
displayRational(mul);
printf("\nDIVISION IS : ");
displayRational(div);
getch();
}