The program accepts the width parameter to determine the display width.