You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
590 B
30 lines
590 B
#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;
|
|
}
|