C language = Program to display right-angle triangle pattern

 Program to display right-angle triangle pattern 


#include<stdio.h>

int main()

{

int i,j,n;

printf("Enter the number of rows");  

    scanf("%d",&n);

for(i=1;i<=n;i++)

{

for(j=1;j<=i;j++)

{

printf("#", i);

}

printf("\n");

}

}

// i for rows & j for collumns






Comments