/* Write a program in C to display the pattern like right angle triangle using an asterisk*/
#include <stdio.h>
void main()
{
int i,j,rows;
printf("Input number of rows : ");
scanf("%d",&rows);
printf("\nNo. of rows = %d\n",rows);
for(i=1;i<=rows;i++)
{
for(j=1;j<=i;j++)
printf("*");
printf("\n");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: