Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  pdd
Language: C/C++
Code:
#include<stdio.h>
double max(double x,double y)
{
    double m;
    if(x>y);
    m=x;
else 
    m=y;
    return m;

}
int main()
{
    double a,b,c,t,maxdata;
    printf("Please input a b c:n");
    scanf("%lf%lf%lf",&a ,&b,&c);
    t=max(a,b);
    maxdata=max(t,c);
    printf("max=%fn",maxdata);
    return o;
}
          
          
Comments: