全站数据
8 4 2 0 5 8 1

keil中最大值函数

掌心装监理 | 简单学习,快乐成才!         
问题更新日期:2024-11-02 09:46:39

问题描述

keil中最大值函数急求答案,帮忙回答下
精选答案
最佳答案

#include

int max(int a,int b)

{

return a > b a :b;

}

void main()

{

int a,b;

scanf("%d,%d",&a,&b);

printf("%d

",max(a,b));

}