<awangdev>Add Digits_1.java
public int addDigits(int num) {
        if (num < 10) {
            return num;
        }
        while (num > 9) {
            int temp = 0;
            while (num != 0) {
                temp += num % 10;
                num = num / 10;
            }
            num = temp;
        }
        return num;
    }
public int sample_funcname ( int var_0 ) {
  if ( var_0 < 10 ) {
    return var_0 ;
  }
  while ( var_0 > 9 ) {
    int var_4 = 0 ;
    while ( var_0 != 0 ) {
      var_4 += var_0 % 10 ;
      var_0 = var_0 / 10 ;
    }
    var_0 = var_4 ;
  }
  return var_0 ;
}
