advanced code snippet search
cmm7825 on 05/20/10
05/20/10 04:44pm
#!/usr/bin/perluse bignum;use strict;use warnings; my$factorial = 1;my $sum = 0;$factorial *= $_ foreach 1..100; while($factorial =~ m/(\d{1})/g) { $sum += int($1); } print $sum;
Report this snippet Tweet
Comment:
You need to login to post a comment.