… for(int p=0;p<=limit;p++) //Limit to number of characters to be displayed { for(j=0;j<5;j++) //Each digit is represented using 5 lines …