编写一个求两个数最大值的函数,然后在主函数输入3个数,通过调用求两个数最大值的自定义函数,在主函数
编写一个求两个数最大值的函数,然后在主函数输入3个数,通过调用求两个数最大值的自定义函数,在主函数
  日期:2016-05-18 14:25:47 人气:1
  
  int maxInt(int x, int y)
{
    return x>y?x:y;
}
void main()
{
    int a=0, b=0, c=0, max=0;
    printf("请输入三个数:");
    scanf("%d %d %d", &a, &b, &c);
    max = maxInt(a, b);
    max = maxInt(max,c);
    printf("最大的数
      