Computer Science, asked by shashwatkrsingh, 6 months ago

create a program to check whether a number is completely divisible by 10 or not? In Python​

Answers

Answered by akg900930
13

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.

Answered by pjgaikar06
7

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.

Similar questions