/********************************************************
* C Program to print Half Pyramid pattern using numbers
********************************************************/
#include<stdio.h> // include stdio.h
int main()
{
int n;
printf("Enter number of lines: \n");
scanf("%d", &n);
printf("\n");
for(int i = 1; i <= n; i++)
{
for(int j = 1; j <= i; j++)
{
printf("%-5d ", j);
}
printf("\n");
}
return 0;
}