【文件属性】:
文件名称:c语言程序代码
文件大小:252B
文件格式:CPP
更新时间:2016-08-27 05:44:36
C/C++
#include "stdafx.h"
int max(int a, int b, int c)
{
int temp;
temp=a;
if(temp < b)
temp=b;
if(temp < c)
temp=c;
return temp;
}
int main(int argc, char* argv[])
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("max=%d\n", max(a, b, c));
return 0;
}