Simple Calculator written in C