#include<stdio.h>//header file
#include<conio.h>//header file
void main() //starting of the main() function
{
int i,j,k,n; //declaration of the variables
clrscr();
printf("program to give a specific pattern");
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter the range");//taking input from the user
scanf("%d",&n);
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\n");
for(i=1;i<=n;i++)
{
for(j=1;j<=n-i;j++)
printf(" ");
for(k=1;k<=i;k++)
printf("%d",k);//printing output
printf("\n");
}
getch();
}