DFA(Deterministic Finite Accepter) which accepts zero or the number devisible by 5.
Input value is string of 0s and 1s, interpreted as a binary representation of an integer.
DFA returns 'Accept' or 'Not accept' depending on input value.
python3
Run DFA.py
python DFA.py
Program will give you description:
Input binary value of 0 and 1.
If you want to exit program, input 'exit'.
Input string of binary number:
0101
If the input is not binary, it gives error:
Error: Input value is not binary.
To exit the program, type 'exit'
exit