Here's one possible algorithm to determine whether a given number is divisible by 5 or not:
Start by taking the input number.
Check if the last digit of the number is either 0 or 5.
If the last digit is 0 or 5, then the number is divisible by 5.
If the last digit is not 0 or 5, then the number is not divisible by 5.
End the program.
Another way to check if the number is divisible by 5 is to perform modulus operation with 5 and check if the result is 0 or not.
Start by taking the input number.
Perform the modulus operation using the number and 5.
If the result of the modulus operation is 0, then the number is divisible by 5.
If the result of the modulus operation is not 0, then the number is not divisible by 5.
End the program.
The above two algorithms are basic ways of checking whether the given number is divisible by 5 or not.