c语言程序代码

59246yyy 31 0 CPP 2019-01-09 10:01:41

#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; }

用户评论
请输入评论内容
评分:
暂无评论