//example 9.7(b)// clc //clears the screen// clear //clears all existing variables// disp('The presettable counter has been set as DOWN counter. After 6th pulse it will be set to 0000 state.') disp('Immediately after eigth state it will be set to 0100 state.')