森眸


私信TA

用户名:dotcpp0621432

访问量:22

签 名:

等  级
排  名 29163
经  验 497
参赛次数 0
文章发表 1
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

TA的其他文章

解题思路:

注意事项:

参考代码:

#include <stdio.h>

#include <string.h>

#include <math.h>

#define MAXNUM(x,y,z) MAX=x>y?x:y;MAX=MAX>z?MAX:z

void Myfunction(float x, float y, float z);


int main()

{

float x, y, z,MAX;

scanf("%f %f %f", &x, &y, &z);

Myfunction(x, y, z);

MAXNUM(x, y, z);

printf("%.3f\n", MAX);

return 0;

}


void Myfunction(float x, float y, float z)

{

float MAX;

MAX = x > y ? x : y;

MAX = MAX > z ? MAX : z;

printf("%.3f\n", MAX);

}


 

0.0分

0 人评分

  评论区

  • «
  • »