Update prog1.cpp

Added a new function- greetings()