贺老师教学链接 C语言及程序设计提高 本课讲解
老革命遇上新问题(哪错了?)
#include <stdio.h>
float max(float x, float y);
int main ()
{float a,b,c;scanf("%f %f", &a, &b);c = max(a, b) ;printf("The max is %f\n", c);return 0;
}
float max(float x, float y)
{float z;z=(x<y)? x : y ;return z;
}
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态