fraction calculater with c