summaryrefslogblamecommitdiffstats
path: root/016.bc
blob: aceb495fb64ba3b15649c2ec3ee18a2f61c01b49 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                     
    
#!/usr/bin/bc

scale = 0
total = 0
num = 2^1000
while (num > 0) {
    total += num % 10
    num = num / 10
}
total
halt