Simple calc in C