#include <stdio.h>
int main() {
//실습10//
/* int a,i;
for{a=1;a<=8;a++}
{
printf("%d의 약수:",a);
for(i=1;i<=a;i++)
if(a%i==0)
printf("%d\n",i);
printf("\n");
}*/
//실습11//
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
printf("*");
printf("\n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: