C语言实验——求两个整数之中较大者
Time Limit: 1000MS
Memory Limit: 65536KB
Problem Description
输入两个整数,请编程求其中的较大者。
Input
在一行中输入用空格隔开的两个整数,例如5 9。
Output
输出两个整数之中较大者,输出形式举例:max=9。
Example Input
5 9
Example Output
max=9
Hint
Author
wy
参考代码
#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);
}