Update calc.cpp
Update calc.cpp

I have changed the code.
Merge pull request #1 from ManaliGadre/comp

Comp