| about | help | code help+videos | done | prefs |
divExactly10And5
Given two positive integers, return true if exactly one of the numbers is divisible by 10 and the other number is divisible by 5; otherwise return false. Recall that n % m gives the remainder that you get when dividing n by m. Hint: If both numbers are divisible by 10, that is not exactly one, so you should return false. divExactly10And5(15, 30) → true divExactly10And5(60, 50) → false divExactly10And5(40, 31) → 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
Copyright Nick Parlante 2017 - privacy