input num;
The above code implies a 1 bit input. You need this to be wider, 4 bits to control 0 to F. If you need additional states such as OFF the you will need at least 5 bits.
you should probably add a default case as well may be to off, then you do not need to fully describe the unused states.
//...
default: hex =7'b1111111;
endcase