Pattern Printing coding 13

//If you are visiting this post in mobile then, please use desktop site mode // CODE NO:- 22 Print the below pattern #LOGIC Here we will require two inner loops, one for printing the spaces and another for printing the pattern (numerical values). Take a variable and initialize it the value 0(zero) then in the second inner loop keep incrementing it by 1. As we can see in the second row we need to print first space then numerical value whereas in the first row we don't need to print any spaces. #Program( In C): In C language we use ' // ' for Single line comment and /*---*/ for multi line comment #include<stdio.h>// header file for i/p and o/p int main() { int i,j,a=0,n,k; printf("\n enter the no. of rows:"); scanf("%d",&n); for(i=0;i<n;i++) { for(j=0;j<i;j++)// for pinting spaces in each row { printf(" ...