C语言实验——两个数最大
Time Limit: 1000MS
Memory Limit: 65536KB
Problem Description
求两个整数中的最大值。
Input
两个数。
Output
输出最大的值,格式为: max=最大值。
Example Input
1 2
Example Output
max=2
Hint
Author
参考代码
#include <stdio.h>
void main()
{
int a=0;
int b=0;
scanf("%d%d",&a,&b);
if(a>b)
printf("max=%d\n",a);
else
printf("max=%d\n",b);
}