about | help | code help+videos | done | prefs |
public boolean isDivisibleBy3(int n)
boolean div3 = false; // default if (n % 3 == 0) { div3 = true; } return div3; isDivisibleBy3(1) → false isDivisibleBy3(2) → false isDivisibleBy3(3) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 1
Copyright Nick Parlante 2017 - privacy