calculator.c script from ch4 of C Programming language