Computer Science, asked by amansinghaster6987, 3 months ago

1) Write a program to check whether a number is completely divisible by 5 or not ?

Answers

Answered by AaronGrey
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 staceyandjimbo
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