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

 

norm.krumpe@muohio.edu arrays > sumNo5
prev  |  next  |  chance

Given a non-empty array of positive integers, find the sum of all the values in that array, except do not use values that are multiples of 5 (5, 10, 15, 20, and so on).


sumNo5([3, 6, 10, 2, 15]) → 11
sumNo5([2, 4, 6]) → 12
sumNo5([85]) → 0

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

int sumNo5(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: 200

Copyright Nick Parlante 2017 - privacy