#include<stdio.h>
main()
{
int i=0, j=0, x;
printf("enter the value of half pyramid = ");
scanf("%d",&x);
for(i=1;i<=x;i++)
{
for(j=0;j<=i;j++)
printf("%d",j);
printf("\n");
}
}