Update iPercent.cpp

Added add function to code