Simple C based calculator