diff options
Diffstat (limited to '016.bc')
-rw-r--r-- | 016.bc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#!/usr/bin/bc + +scale = 0 +total = 0 +num = 2^1000 +while (num > 0) { + total += num % 10 + num = num / 10 +} +total |