#include <stdio.h>
int main(void)
{
int height, i;
while(1)
{
printf("막대의 높이(종료: -1): ");
scanf("%d", &height);
for(i=1;i<=height;i++)
printf("*");
if(height==-1)
break;
printf("\n");
}
return 0;
}
#include <stdio.h>
int main(void)
{
int height, i;
while(1)
{
printf("막대의 높이(종료: -1): ");
scanf("%d", &height);
for(i=1;i<=height;i++)
printf("*");
if(height==-1)
break;
printf("\n");
}
return 0;
}