Question: Here is a program that checks whether a number is divisible by 5 and 6, whether a number is divisible by 5 or 6, whether
Here is a program that checks
whether a number is divisible by 5 and 6,
whether a number is divisible by 5 or 6,
whether a number is divisible by 5 or 6 but not both
and whether a number is not divisible by both 5 and 6 w5
Examples
Enter an integer: 24
24 is divisible by 5 or 6.
24 is divisible by 5 or 6, but not both.
24 not divisible by both 5 and 6.
Enter an integer: 30
30 is divisible by 5 and 6.
30 is divisible by 5 or 6.
Enter an integer: 23
23 not divisible by both 5 and 6.
Using C code (not C++ or java)
Also please use if and else if to write the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
