循环语句
#inculde<stdio.h>
in main()
while(iSelect=1)
{
printf("------Menu-------");
printf("----Sell-----------1\n");
printf("----Buy----------2\n")
printf("----ShowProduct----3\n");
printf("-----Out-----------0\n");
scanf("%d",&iSelect);
switch(iSelect)
{
case 1:
printf(“you are buying something into store\n”);
break;
case 2:
printf(“you are selling to consumer\n”);
break;
case 3;
printf(“checking the store\n”);
break;
case 0:
printf(“the Program is out\n”);
break;
default:
printf(“You put a wrong selection\n”);
break;
}
}
return 0;
}
07-16
07-16
07-16
07-16
07-16
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交