Program in c++ to check if it is possible to add two numbers to get the third or not.