A simple calculator in C