From 7d61e33cd192d31023aa779b677572641258dc3b Mon Sep 17 00:00:00 2001 From: GLY <18408000205@stu.hut.edu.cn> Date: Wed, 9 Jan 2019 19:11:42 +0800 Subject: [PATCH] first commit --- main.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 main.c diff --git a/main.c b/main.c new file mode 100644 index 0000000..a38a097 --- /dev/null +++ b/main.c @@ -0,0 +1,17 @@ +#include +#include + +int max(int x,int y) +{ + if(x>y) return x; + else return y; +} +int main(void) +{ + int i,o,m; + printf("输入两个值\n"); + scanf("%d%d",&i,&o); + m=max(i,o); + printf("较大值为%d",m); + return 0; +}