Calculator application program in C