Update ass1.cpp

Modified code ass1 to print addition of 2 nos.