cpp program to perform add & sub  operations