1) Write a program to check whether a number is completely divisible by 5 or not ?
Answers
Answered by
1
USING PYTHON
a=int(input("Enter a number:" ))
if a%5==0:
print("Divisible by 5.")
else:
print("Not divisible by 5.")
Answered by
0
Answer:
it should have 0 or 5 as the last digit
Explanation:
example 10, 15,20,35 etc these are all examples of numbers divisible by 5. Thus any number containing 0 or 5 as last digit will always be divisible by 5
Similar questions