#include <cstdio>
void f(int n)
{
if(n==0)
return;
printf("*");
f(n-1);
}
void d(int n, int c)
{
if(c>n)
return;
f(c);
printf("\n");
d(n,c+1);
}
int main()
{
int n;
scanf("%d",&n);
d(n,1);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: