题解 | #小乐乐找最大数#
小乐乐找最大数
https://www.nowcoder.com/practice/ae6a21920cac4f9184c8ecfcc87f89b9
#include <stdio.h> int main() { int temp = 0, max = 0;; for(int i=0; i<4; i++) //边输入边判断,若为最大,则更新max { scanf("%d ", &temp); if(temp > max) max = temp; } printf("%d", max); return 0; }