parent
cd89f0d8af
commit
3bc496a152
@ -0,0 +1,30 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
printf("%*s%s\n",30,"","1.Input" );
|
||||||
|
printf("%*s%s\n",30,"","2.Output" );
|
||||||
|
printf("%*s%s\n",30,"","3.Order" );
|
||||||
|
printf("%*s%s\n",30,"","4.Quit" );
|
||||||
|
char ch;
|
||||||
|
scanf("%s",&ch);
|
||||||
|
printf("\n");
|
||||||
|
if(ch=='i'){
|
||||||
|
printf("You are trying to Input info");
|
||||||
|
}else{
|
||||||
|
if(ch=='o'){
|
||||||
|
printf("You are trying to Output info");
|
||||||
|
}else{
|
||||||
|
if(ch=='m'){
|
||||||
|
printf("You are trying to Make things ordered");
|
||||||
|
}else{
|
||||||
|
if(ch=='q'){
|
||||||
|
printf("You are about to Quit");
|
||||||
|
}else{
|
||||||
|
printf("Wrong input");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in new issue