Python Program to Check Number is Divisible by 5 and 11

Write a Python program to Check Number is Divisible by 5 and 11 using If Else with an example.

Python Program to Check Number is Divisible by 5 and 11

This python program allows users to enter any integer value. Next, this Python program checks whether the given number is divisible by both 5 and 11 using If Else.

# Python Program to Check Number is Divisible by 5 and 11

number = int(input(" Please Enter any Positive Integer : "))

if((number % 5 == 0) and (number % 11 == 0)):
    print("Given Number {0} is Divisible by 5 and 11".format(number))
else:
    print("Given Number {0} is Not Divisible by 5 and 11".format(number))
Python Program to Check Number is Divisible by 5 and 11 1