Computer Science, asked by laskarm446, 2 months ago

Write a program that checks if a number is divided by 11 or not.​

Answers

Answered by badboy07731
0

Answer:

divide the number by 11 and check it. it's simple

Answered by MVasu
0

Explanation:

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 && . To check divisibility with 5 and 11 both, check if((num % 5 == 0) && (num % 11 == 0)) , then number is divisible by both 5 and 11.

Similar questions