Update percent.cpp

edited