All pastes #334085 Raw Edit

Stuff

public text v1 · immutable
#334085 ·published 2007-01-31 10:25 UTC
rendered paste body
public boolean isDivisibleBy9(int n)
{
  if(sumDigits(n) > 9)
    return isDivisibleBy9(n-9);
  if(sumDigits(n) == 9)
    return true;
  else
    return false;
}