10 pts Question 4 Fill in the blank: You will be graded on efficiency of your function Write a function is Not Multiple
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
10 pts Question 4 Fill in the blank: You will be graded on efficiency of your function Write a function is Not Multiple
Question 4 Fill in the blank: You will be graded on efficiency of your function Write a function is Not Multiple that determines for a pair of integers whether the second is not a multiple of the first or it is. The function should take two integer arguments and return true if the second is not a multiple of the first, false otherwise. This function's result is whether nMulti is NOT multiple of nBase or it is: bool is Not Multiple (int nBase, int nMult) { return 3 Examples: isNotMultiple (5, 15) returns false isNotMultiple (3,9) returns false isNotMultiple (5, 12) returns true isNotMultiple (3, 7) returns true HINT: YOU DO NOT NEED ANY CONDITIONAL STATEMENTS including ternary operator
10 pts