Update calc.c

bug fixed