Update calc.cpp

using branch tejashree
Merge pull request #1 from sanju010295/tejashree

Update calc.cpp 
with merging