commit 7d61e33cd192d31023aa779b677572641258dc3b Author: GLY <18408000205@stu.hut.edu.cn> Date: Wed Jan 9 19:11:42 2019 +0800 first commit 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; +}