Back to task

37 symbols perl
Fri Apr 24 00:38:09 2015 James Curtis-Smith
($t+=$_)%=9 for split ,<>;print $t||9

This will work for arbitrary large numbers for which the direct (shift%=9) || 9 will not necessarily give the correct answer!

Fri Apr 24 00:39:29 2015


Leave a comment

Parsed as Markdown

Login to leave a comment