- Write a C program that uses a Finite State Machine (FSM) toproduce the behavior of an electronic lock: inputs are integervalues 0 and 1. There is a start signal that rings the program toan initial state. The lock is unlocked for the input combination “01 0 1 1”, otherwise the lock remains locked.
Solution