module jk_ff_enable (
input CLK,
input EN,
input J,
input K,
output reg Q
);
// Write your code here
always @(posedge CLK)begin
if(EN==0) Q<=Q;
else if(J == 1'b0 && K == 1'b0)Q<=Q;
else if(J == 1'b0 && K == 1'b1)Q<=1'b0;
else if(J == 1'b1 && K == 1'b0)Q<=1'b1;
else if(J == 1'b1 && K == 1'b1)Q<=~Q;
end
endmodule