函数返回
#include <stdio.h> int max(int x,int y); int main() { int a, b, c; scanf(%d %d", &a, &b); c = max(a, b); printf("max=%d", c); return 0; } int max(int x, int y) { return(x>y?x:y); }
2021-12-12 13:26:09
函数返回
#include <stdio.h> int max(int x,int y); int main() { int a, b, c; scanf(%d %d", &a, &b); c = max(a, b); printf("max=%d", c); return 0; } int max(int x, int y) { return(x>y?x:y); }