SUM!

Write a program to sum of digits of given integer number.

IN

1
2

OUT

3

IN

50
23

OUT

73

IN

20
20

OUT

40

IN

70
21

OUT

91

IN

22
40

OUT

62

There is a 2-byte Pyth solution, +E, but it's not supported for some reason.

Mon Mar 26 23:58:44 2018


Leave a comment

Parsed as Markdown

Login to leave a comment