about | help | code help+videos | done | prefs |
divisibleBy5
boolean divisibleBy5(int num). A number is divisible by 5 if its last digit (the digit in the one's column) is 0 or 5. Or if when you divide it by 5, the remainder is zero. Return true if the number is divisible by 5, false if it's not. divisibleBy5(1) → false divisibleBy5(5) → true divisibleBy5(7) → false ...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: 100
Copyright Nick Parlante 2017 - privacy