id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > rrr2sumArrayDigits
prev  |  next  |  chance

Write a method that returns the sum of all the digits in all the numbers in an array of positive integers. You may not use strings in any way!


rrr2sumArrayDigits([]) → 0
rrr2sumArrayDigits([7]) → 7
rrr2sumArrayDigits([1000]) → 1

...Save, Compile, Run (ctrl-enter)

public int rrr2sumArrayDigits(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 290

Copyright Nick Parlante 2017 - privacy