#include main() { int i,j,num; clrscr(); printf("Enter a number: "); scanf("%d",&num); for (i=1;i<=num ;i++ ) { for (j=1;j<=i ;j++ ) { printf("*"); } printf("\n"); } getch(); }