C calculator