Question: Write a C + + function with three integer parameters. The Function should return true if the three values are divisible by 5 . Otherwise,

Write a C++ function with three integer parameters. The Function should return true if the three values are divisible by 5. Otherwise, the function should return false. The function should complete the task without using the modulus operator "%" & without converting the three parameters to strings. The three integers could have any value within the acceptable range of an integer variable. Include the prototype statement and give an example of calling the function.
Note: A number is divisible by 5 if the last digit is 0 or 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!