| about | help | code help+videos | done | prefs |
public boolean divideBy5remainderIs1(int n)
boolean rem1 = false; // default
if (n % 5 == 1) {
rem1 = true;
}
return rem1;
divideBy5remainderIs1(5) → false divideBy5remainderIs1(6) → true divideBy5remainderIs1(11) → 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