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