NEWTON

NEWTON


Popular tags

    How to calculate the sum of the digits of a felt in Cairo?

    Asked

    5 months ago

    6

    views


    0

    Given a felt, I would like to get the sum of the digits. For example, 123 would be 1 + 2 + 3 = 6.

    Test 1

    Input(s): 123

    Output(s): 6

    Test 2

    Input(s): 577

    Output(s): 19

    Test 3

    Input(s): 88888

    Output(s): 40

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    Test #1

    Test #2

    Test #3

    

    This answer was originally posted on Triality

    answered

    5 months ago

    Your answer

    NEWTON

    NEWTON