题目内容
以下程序定义了一个函数Max,用于求三个浮点数的最大值,main函数中输入三个数,调用函数得到最大值,并输出最大值。程序有6个错误,请改正。#include Max(double a;b; c);{double max = a>b?a:b;max = c>max?c:max;return max;}int main(){double a,b,c,max;scanf("%d%d%d",&a,&b,&c);max = Max(double a,double b,double c)printf("最大值为%f",max);return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题