Update calc.cpp

program is edited