โ Back to Functions/Methods
Question 287
Function: Is Divisible
Function: Is Divisible
Write a functionisDivisible(int a, int b)that returns1ifais evenly divisible byband0otherwise. Read two integersaandbfrom input and print the result. For input12 4the output is: 1 Print1or0with%d.
Expected Output:
1
Topics:
Functions/Methods
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.