c语言程序设计题 编写程序:通过函数调用,求出三实数中的最大数并输出。程序中必须用函数求出两个数中

日期:2015-11-22 22:35:37 人气:1

c语言程序设计题 编写程序:通过函数调用,求出三实数中的最大数并输出。程序中必须用函数求出两个数中

#include int main ( ){ float Max (float a, float b, float c); //函数声明 float a, b, c, max; printf ("输入三个数:"); scanf ("%f%f%f", &a, &b, &c); max = Max (a, b, c); //函数调用求最大值 printf ("三个数中最大的数是:%.2f\n", max
    A+
热门评论