create a program to check whether a number is completely divisible by 10 or not? In Python
Answers
Answer:
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))
Explanation:
The Python If Else Statement is an extension to the If Statement (which we discussed in the earlier post). We already seen the If condition, it will only executes the statements when the given condition is true and if the condition is false, it will not execute statements.
Answer :
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))
Explanation:
The Python If Else Statement is an extension to the If Statement (which we discussed in the earlier post). We already seen the If condition, it will only executes the statements when the given condition is true and if the condition is false, it will not execute statements.