 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can display this kind of triangle on console in C programming. Before starting, you can note my information, you can follow or subscribe my YouTube channel that is sanjaygupta underscore tax school. You can download my Android app based on programming that is Takamis. It is available on Google Play. Now coming on to the topic, to display this triangle, first I have included a header file as stdio.h, then main function. Inside main, three variables i, j and n is declared. Then through printf, this message enter how many rows you want to print will be displayed on console. Then the enter number will be stored inside n. Now I am going to implement first for loop which will start from one and it will repeat n times and it is incremented by one. Inside this for loop, I am implementing another loop which is starting from one and it will repeat i times and it is also incremented by one. Inside this for loop, I am going to print values of i on console. After completion of j loop, for new line, I am going to print slash n on console. So this is the complete implementation of this code. So now suppose value of n is five, so i will start from one, condition will be true, then control will be transferred inside this loop j. j is starting from one, i is one, so this loop will execute one time. So value of i is one, so it will display one on console. After completion of j loop, control will be transferred to slash n, so it will display new line on console. Then i++ will be executed, so i becomes two now. Then condition is true. Again j loop will begin from one. This time i is two. So j loop will execute two times this time. So i will be printed twice, so value of i is two. So two will be printed two times on console. So this way the above mentioned output will be displayed on console in form of triangle. Now I am going to execute this loop. I am entering five. You can see one, then two times two, three times three, four times four, five times five are displayed on console. If you enter a greater value, like ten, so these kind of results will be displayed on console. Ten is printing in this form because it is containing two digits. That's why this kind of output is displayed on console. So this way above mentioned pattern will be displayed with the help of these nested loops and these nested loops will be printing number of rows as per the user's requirement. I hope you have understood how you can print above mentioned pattern in C programming. If you want to watch more programming related videos, you can follow or subscribe my YouTube channel. That is Sanjay Gupta underscore Tech School. Thank you for watching this video.