Question: Write a C++ function called Divisible By 3, it receives one integer number x and returns 1 if x is divisible by 3 otherwise return
Write a C++ function called Divisible By 3, it receives one integer number x and returns 1 if x is divisible by 3 otherwise return -1. Then write the main program asks user to enter x and y then call the function and display if the number is divisible or not. Example: Please enter the values for x 12 12 is divisible by 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
