回复:(碰碰儿)[讨论]一道用循环语句做的选择题
#include "stdio.h"
main()
{
int a,b;
printf("\n Z C D\n 1.INPUT STUDY\n 2.FIND STUDY\n 3.PRINT STUDY\n 0.EXIT\n");
loop:
printf("\n Choose 1-3:");
do
{
scanf("%d",&a);
switch(a)
{
case 1:printf("Please input\n");break;
case 2:printf("Find number\n");break;
case 3:printf("in process of use\n");break;
default:printf("wrong\n");break;
}
}
while(a!=0); printf("thank use\n") ;