C Program to print number a Right angled Triangle pattern
Program
#include<stdio.h>
void main()
{
int num, i, j;
printf("Enter the number of rows to print:\n");
scanf("%d", &num);
printf("Printing the series\n");
for(i = 1; i <= num; i++)
{
for(j = 1; j <= i; j++)
printf("%d", j);
printf("\n");
}
}
Output
Enter the number of rows to print:
6
Printing the series
1
12
123
1234
12345
123456