parent
f569f1e98c
commit
732ca5a906
@ -1,2 +1,23 @@
|
||||
# xjglxt
|
||||
#include <stdio.h>
|
||||
int main( )
|
||||
{
|
||||
int num_spaces =30;
|
||||
printf("%*s1.Input\n",num_spaces," ");
|
||||
printf("%*s2.Output\n",num_spaces," ");
|
||||
printf("%*s3.Order\n",num_spaces," ");
|
||||
printf("%*s4.Quit\n",num_spaces," ");
|
||||
char a;
|
||||
again:a=getchar();
|
||||
switch(a)
|
||||
{
|
||||
case'i':printf("You are trying to Input info");break;
|
||||
case'o':printf("You are trying to Output info");break;
|
||||
case'm':printf("You are trying to Make things orderd");break;
|
||||
case'q':printf("You are about to Quit");break;
|
||||
case'\n':printf("\n");break;
|
||||
default:printf("Wrong input");
|
||||
}
|
||||
goto again;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue