chengxu
/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
int hang,shuchu,two,i;
do
{
printf("你要输入多少行的星星");
scanf("%d",&hang);
for(shuchu=1;shuchu<=hang;shuchu++)
{
for(two=1;two<=10;two++)
{
printf("*");
}
printf("\n");
}
do
{
printf("\n继续输入1退出输入2");
scanf("%d",&i);
if(i==1)
break;
else if(i==2)
break;
else (i!=1&&i!=2);
printf("输入错误");
}while(i!=1&&i!=2);
if(i==2)
break;
}while(i==1);
}