/*源程序:exp6_2.cpp*/
#include<stdio.h>
void main()
{
void printfline();
int max(int a,int b);
int x,y,z,d;
printfline();
printf("input there number:\n");
scanf("%d%d%d",&x,&y,&z);
d=max(x,y);
d=max(d,z);
printf("maxmaum=%d\n",d);
}
void printfline()
{
printf("there is a C program!\n");
}
int max(int a,int b)
{
if(a>b)return a;
else return b;
}
#include<stdio.h>
void main()
{
void printfline();
int max(int a,int b);
int x,y,z,d;
printfline();
printf("input there number:\n");
scanf("%d%d%d",&x,&y,&z);
d=max(x,y);
d=max(d,z);
printf("maxmaum=%d\n",d);
}
void printfline()
{
printf("there is a C program!\n");
}
int max(int a,int b)
{
if(a>b)return a;
else return b;
}
![](https://img-my.csdn.net/uploads/201303/17/1363501940_4766.jpg)