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