   One int and add the values of itself
  Hello,I have an integer value like 123. With that I want to addtheirselves, 1 + 2 + 3. value / 100 = 1 and value % 10 = 3. But how doI get '2'? It's either 12 or 23, not only 2.Thanks.   
  (value / 10) % 10   ;  Amazingly fast! Thanks!   ;  for a unspecified int you can do:int addDigits(int i) {    int n=0;    while(i>0) {   n+=i%10;   i/=10;    }    return n;}std::cout << addDigits(23434);output will be: 16   