Skip to content

Commit

Permalink
Revert "Revert "Solved!""
Browse files Browse the repository at this point in the history
This reverts commit d88ad9b.

I really fail
  • Loading branch information
fahadsadah committed Jan 31, 2010
1 parent d88ad9b commit ac6e79c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 16.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/ruby
number = 2 ** 1000
sum = 0
number.to_s.each_char do
|x|
sum = sum + x.to_i
end
print "sum is #{sum}\n"

0 comments on commit ac6e79c

Please sign in to comment.