Program to display a pyramid of numbers

/* Program to draw pyramid of numbers displaying  following Pattern  */

/*  1

2 3

4 5 6

7 8 9 10   */

#include<stdio.h>

#include<conio.h>

void main()

{

int i,j,row,t=1;

clrscr();

printf(“Enter How many Rows : “);

scanf(“%d”,&row);

for(i=1;i<=row;i++)

{

for(j=1;j<=row-i;j++)

printf(” “);

for(j=1;j<=i;j++)

printf(“%2d”,t++);

printf(“\n”);

}

getch();

}