C语言实现求两个整数的最大值
#include <stdio.h>
int max(int a, int b);
int main() { int a, b; scanf('%d%d', &a, &b); printf('%d', max(a, b)); }
int max(int a, int b) { int i; if (a < b) i = b; else i = a; return i; }
原文地址: https://www.cveoy.top/t/topic/pkjg 著作权归作者所有。请勿转载和采集!