Find Max Min (easy)


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 64M

Author:
Problem types
Allowed languages
Java 19, Java 8

題目說明

請找出使用者輸入的5個整數中之最大值最小值
禁止使用Max、Min函式

輸入

鍵盤輸入五個整數

輸出

五個整數中的最大值和最小值

sample input & output

輸入 輸出
DataSet1 -10 -20 -17 -18 -19 -10 -20
DataSet2 0 0 0 1 2 2 0
DataSet3 1 2 3 4 10 10 1

Comments

There are no comments at the moment.