can someone help me, I need a program like this but it must not use for loop.
or can someone revise it using do loop? I need it badly
here is the code:
{
int n, i, j;
do{
printf("Enter a positive int n: ");
scanf("%d",&n);
} while (n < 0);
do{
for (i = 1; i <= n; i++)
{
for (j = 1; j <= i; j++)
printf("*");
printf("\n");
}
} while (i <= n);
getch();
}