Update calc.cpp

this is edited code