Opening the reading…
Opening the reading…
TIME AND SPACE COMPLEXITY / ONLINE JUDGE › ONLINE JUDGE
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Complete the Java program so it reads n and the n integers from the provided running example, computes their sum, and prints only the sum. The correct output is exactly 14.
OUTPUT
Sample14
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.