Update calc.cpp

i hv added one more function to the program........