2962: 循环入门-找出输入的 5 个整数中的最大值
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:18
Solved:8
Description
从键盘输入 5 个整数,使用 for 循环接收输入,通过 if 依次比较并记录最大值,最终输出这 5 个数的最大值。
Input
5 个整数,用空格分隔;
Output
一个整数,表示 5 个数中的最大值;
Sample Input Copy
1 2 3 4 5
Sample Output Copy
5
HINT
数据范围:-1000 ≤ 输入整数 ≤ 1000。