Practice
Lowest Temperature Finder
2023/Oct/Nov·Variant 2
MEDIUMAlgorithms
Read exactly 5 temperature readings using a loop. Output the single lowest temperature.
Input: 5 numbers. Output: The lowest temperature.
Example:
Input: 25
10
30
-5
15
Output: -5
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Contains negatives
Inputs: 25, 10, 30, -5, 15
Expected: -5
Test 2: Descending
Inputs: 100, 90, 80, 70, 60
Expected: 60
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade