Update new.cpp

Added a function fun().
Merge pull request #1 from aditi-joshi/Neha

Update new.cpp