The main difference between latch and flip flop is that the latch checks the input continuously and changes the output when…