Update prog1.cpp

added function- add().
Merge pull request #1 from AditiChoksi/added-function-greetings()

Update prog1.cpp