int addDigits(int num){ return (num - 1) % 9 + 1; }

Twetch ·

int addDigits(int num){
return (num - 1) % 9 + 1;
}

Replies

Twetch ·

https://twetch.app/t/aff3c5449f1ace5cc0475bd51ef0e11ac30f918c954887ec3efda2bc222ef5d8