From 7f3d6d4e1d429f4e88998f486ff4deb0b18a711d Mon Sep 17 00:00:00 2001 From: pv7g39eqr <2500187549@qq.com> Date: Sun, 12 Nov 2023 19:07:37 +0800 Subject: [PATCH] ADD file via upload --- main.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 main.c diff --git a/main.c b/main.c new file mode 100644 index 0000000..9721525 --- /dev/null +++ b/main.c @@ -0,0 +1,25 @@ +#include +int main() +{ + printf(" 1.Input\n 2.Output\n 3.Order\n 4.Quit\n"); + + char a; + for(;;) + { + 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 ordered");break; + case'q': printf("You are about to Quit");break; + case'\n': printf("\n");break; + default: printf("Wrong input"); + } + } + + +} + + +