All pastes #188963 Raw Edit

Mine

public text v1 · immutable
·published 2006-10-02 18:13 UTC
rendered paste body
for(int i=1; i<=digits; i++)
                total+=(input%int(pow(10, i))-input%int(pow(10, i-1)))/pow(10, i-1);