Simple C calculator