Computer Science, asked by agarwal18harsh08, 2 months ago

what is program to check the divisibility of 5 in python programs

Answers

Answered by Sidra00
1

Answer:

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.

Explanation:

hope it will help you :)

Answered by Anonymous
3

# Python Program to Check Number is Divisible by 5

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

if(number % 5 == 0):

print("Given Number {0} is Divisible by 5".format(number))

else:

print("Given Number {0} is Not Divisible by 5".format(number))

Similar questions