 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can display these two patterns on console using C programming. Before starting, you can note my information. You can follow or subscribe my YouTube channel that is sanjaygupta underscore tech school. You can download my app tech image that is available on Google Play. Here you can see I have included a header file that is stdi.h. Then in main function, three variables of integer type are declared. Then ch, a variable of character type is initialized by a. Then printer will display this message on console. Then scanner will read a number inside n which represents number of rows. Then first loop, which is for printing rows, it will repeat n times from 1 to n. It is having inner loop which will repeat i times from 1 to i. It is displaying ch on console. After printing ch, it will increase a value of ch by 1. Then after completion of j, new line will be displayed on console. So this way, first pattern will be displayed with help of this code. So I am executing this program. You can see the output. First pattern is displayed on console. Now, if you want to print second pattern in decreasing a number of rows ordered. So I am changing first loop. It is initializing by n. Its condition is i greater than equals to 1 and it is decremented as i minus minus. So by changing this loop, if I execute this code, you can see pattern is printed in decreasing format like in first row A, B, C, D, E, in second row F, G, H, I and so on. So I hope you have understood how you can print these two patterns with help of nested loop in C programming. If you want to watch more programming related videos, you can subscribe my YouTube channel that is sanjaygukta underscore tech school. Thank you for watching this video.