How to expand the 1 digit in seven segment to 5 digit

Hi guys!
Im new to arduino,so my first project is 5 digit seven segment with 4x3 matrix keypad control.But when i search the code and schematics i only see 1 digit code.Please help me to expand the code for 5 Digit
Im using the code Below:

/*

#include <sevenSegmentDisplay.h>
#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
//define the cymbols on the buttons of the keypads
char keypadArray[ROWS][COLS] = {
{‘1’,‘2’,‘3’},
{‘4’,‘5’,‘6’},
{‘7’,‘8’,‘9’},
{’*’,‘0’,’#’}
};
byte rowPins[ROWS] = {6, 5, 4, 3}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {2, 1, 0}; //connect to the column pinouts of the keypad

//initialize an instance of the Keypad class
Keypad myKeypad = Keypad(makeKeymap(keypadArray), rowPins, colPins, ROWS, COLS);
//create a 7 Segment Display library intance
sevenSegmentDisplay ssd(COMMON_ANODE, 13, 12, 11, 10, 9, 8, 7, A0);

void setup() {
}

void loop() {
char key = myKeypad.getKey();
int num = key - ‘0’;

if (key) {
if (key == ‘*’ || key == ‘#’) {
} else {
ssd.set(num);
}
}
}

We need a link to your 5 digit display.

5 digits is an odd number, there are pre-made 4-digit displays that will save you a lot of work.
Anyway, look at the MAX7219 chip, it can handle up to 8 digits of seven segment displays.

The seven segment display library will have instructions for working with multiple digits, you just have to bother to read the guide.