Update calc.cpp

Edited in the new branch
Merge pull request #1 from PoojaDaas123/3436

Update calc.cpp