Ok I found the solution. I initialized 'total' (my int for finding the combined total of all numbers) to equal 0 then I did this:

Code:if( num != 0 ){ while (num != 0){ currentNum = num % 10; num /= 10; cout <<"curr:" << currentNum << endl;total += currentNum;cout<< "total:" << total << endl; if( currentNum > largeNum ){ largeNum = currentNum; } if( currentNum < smallNum ){ smallNum = currentNum; } } } else{ largeNum = 0; smallNum = 0; total = 0; }