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

 

borlaj@portlandschools.org > findWeirdSum
prev  |  next  |  chance

Create the method findWeirdSum which will find the sum of all numbers divisible by 13 from 1 up to n So findWeirdSum (30) would add up 13, 26 and return 39


findWeirdSum(30) → 39
findWeirdSum(250) → 2470
findWeirdSum(4000) → 614614

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

public int findWeirdSum(int n) }

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

Copyright Nick Parlante 2017 - privacy