题解 | #小乐乐找最大数#
小乐乐找最大数
https://www.nowcoder.com/practice/ae6a21920cac4f9184c8ecfcc87f89b9
#include <stdio.h> int main() { int n; int max = 0; while(scanf("%d", &n) != EOF) { if(n > max) { max = n; } } printf("%d", max); return 0; }
小乐乐找最大数
https://www.nowcoder.com/practice/ae6a21920cac4f9184c8ecfcc87f89b9
#include <stdio.h> int main() { int n; int max = 0; while(scanf("%d", &n) != EOF) { if(n > max) { max = n; } } printf("%d", max); return 0; }
相关推荐