add divisible traingular number problem in c++