From 95733f53e80e2bda7576e51c51439930e744febd Mon Sep 17 00:00:00 2001 From: pfwtzfkoe <3296553455@qq.com> Date: Sun, 12 Nov 2023 23:05:01 +0800 Subject: [PATCH] ADD file via upload --- 1(1).c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 1(1).c diff --git a/1(1).c b/1(1).c new file mode 100644 index 0000000..ceb7be6 --- /dev/null +++ b/1(1).c @@ -0,0 +1,29 @@ +#include +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; +}