 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can display lines in different styles. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app Techimage that is available on Google Play. You can connect with me by following these details which are available in front of you. Now coming onto the topic, I have included two header files, Graphics.h and Ponure.h. Then main function is implemented. Inside main function, variable gd is declared which is initialized with detect. It will automatically detect graphics driver. Then gm is for graphics mode. Then i is for loop counter. Then x equals to 100 and y equals to 50. These two variables are initialized. Then for graphics initialization, I have used initGraph function which is having three arguments gd, gm and a path which is containing graphics library. gd stands for graphics driver. gm is for graphics mode and this path c, tc and bgi is containing library. After graphics initialization, this for loop will execute. It is starting from zero. Condition is i less than five. So it will repeat five times from zero to four. Then setLineStyle function is available here. This setLine function is predefined. You can see its declaration. Its first argument is lineStyle. Second argument is pattern and third argument is thickness. So first argument is i which is changing each time when this loop will be repeating. Second and third arguments are fixed zero and two. Then line function is used. It will display lines on console. So x and y are starting points of line and x plus 200 and y are ending point of the line. Then y is incremented by 25 each time so that lines will be displayed with some distance. Then delay function is available. This function will display lines with some delay here. 1,000 millisecond value is passed. So if you want to remove this function, you can write comment here. If you want to use this function, you can remove this comment. This function maintains a gap while lines will be displaying on console. If you don't want to maintain that gap, you can uncomment it. After completion of our loop, getCH function is called which will hold the console screen. Then closeGraph will close the graphs which are initialized using initGraph. Then return zero is for return type that is available int for main function. Now I am executing this code. You can see lines are displaying with some gap because I have used delay function. If you want to display all the lines without any gap, you can uncomment delay function. Now you can see all the lines are displayed at once. So friends, with the help of this example, you can display lines with different styles that are predefined in graphics header file. Implement this code at your own so that you can understand how it is working. If you want to watch more programming related videos, you can subscribe my YouTube channel. Thank you for watching this video.