I have written a code to display the seven segment output. Whereas I need to display the output side by side. Say input: 123 , output should display seven segment side by side as below Here is my logic: Answer Try the following: You need to print the segments side by side, so you should start by printing the top