#include void main() { int cnt=35,temp=35,i,j,row; clrscr(); printf("Enter The number of rows"); scanf("%d",&row); printf("%48s\n%48s","Program of Stars\n","--------------------"); for(i=1;i<=row;i++) { temp-=2; for (j=1;j<=i ;j++ ) { printf("%*c",cnt+1,'*'); cnt=1; }//inner for cnt=temp; printf("\n"); }//outer for getch(); }