Write a C program which prints pyramid format?
/* C program which prints Pyramid format */ #include<stdio.h> #include<conio.h> int main(){ int i,j,rows = 10; /* give input here*/ clrscr(); for(i=0; i< rows ;i++) { gotoxy(i,(rows - i) * 2); for(j = 1; j <= i ; j++){ printf(" *"); } printf("\n"); } getch(); return 0; }