module displayNumber(in,out10,out1);
//input number
input [7:0]in;
//out10 mean 10's, out1 mean 1's
output [6:0]out10;
output [6:0]out1;
reg [6:0]out10;
reg [6:0]out1;

always@(in)
begin
    case((in%100-in%10)/10)
        8'd0: out10=7'b1000000;
        8'd1: out10=7'b1111001;
        8'd2: out10=7'b0100100;
        8'd3: out10=7'b0110000;
        8'd4: out10=7'b0011001;
        8'd5: out10=7'b0010010;
        8'd6: out10=7'b0000010;
        8'd7: out10=7'b1011000;
        8'd8: out10=7'b0000000;
        8'd9: out10=7'b0010000;
    endcase
    case(in%10)
        8'd0: out1=7'b1000000;
        8'd1: out1=7'b1111001;
        8'd2: out1=7'b0100100;
        8'd3: out1=7'b0110000;
        8'd4: out1=7'b0011001;
        8'd5: out1=7'b0010010;
        8'd6: out1=7'b0000010;
        8'd7: out1=7'b1011000;
        8'd8: out1=7'b0000000;
        8'd9: out1=7'b0010000;
    endcase
end
endmodule