Step-by-step explanation:
Logic to check divisibility of a number
Input a number from user. ...
To check divisibility with 5, check if(num % 5 == 0) then num is divisible by 5.
To check divisibility with 11, check if(num % 11 == 0) then num is divisible by 11.
Now combine the above two conditions using logical AND operator && .