#include <stdio.h>
void main()
{
int n, c, k;
clrscr();
printf("Enter number of rows: ");
scanf("%d",&n);
for ( c = 1 ; c <= n ; c++ )
{
for( k = 1 ; k <= c ; k++ )
printf("*");
printf("\n");
}
getch();
}
void main()
{
int n, c, k;
clrscr();
printf("Enter number of rows: ");
scanf("%d",&n);
for ( c = 1 ; c <= n ; c++ )
{
for( k = 1 ; k <= c ; k++ )
printf("*");
printf("\n");
}
getch();
}
No comments:
Post a Comment