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.
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
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;
|
|
}
|