Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › CONTROL FLOW
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 switch for the calculator with a = 18 and b = 6. Run it for choice = 2 and choice = 9 so the output is 12 for the first run and Invalid choice for the second run, with no extra operation output.
OUTPUT
Sample12 Invalid choice
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.