output:
/\
/ \
/____\
input:
#include<stdio.h>
#include<conio.h>
void main()
{
int x,a,n,z,w;
printf("enter the size of triangle: ");
scanf("%d",&x);
//clrscr();
for(n=0;n<x;n++)
{
for(z=1;z<=2*x-2*n;z++)
printf(" ");
printf("/");
for(w=0;w<=4*n;w++)
printf(" ");
printf("\\ \n");
}
printf("/");
for(a=0;a<=4*x;a++)
printf("_");
printf("\\ \n");
getch();
}