Computer Science, asked by paritoshrautela01708, 10 months ago

To check and display whether a number is divisible by 11 or not in python
Pls tell the ans.

Answers

Answered by yadavds100
1

You can simply use % Modulus operator to check divisibility. For example: n % 2 == 0 means n is exactly divisible by 2 and n % 2 != 0 means n is not exactly divisible by 2.

<marquee><Font color="red">mark me BRANLIST</font>

Answered by sharon47
2

Answer:

Input a number from user. Store it in some variable say num . 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.

Hope it will help you .

Similar questions