Calculator written in C