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

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 Databases Questions!