Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › RECURSION BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Implement printParity for the inclusive range 3 to 8. Call it once with wantedParity = 0 and once with wantedParity = 1, printing 4 6 8 and 3 5 7 on separate lines; the recursive call must run independently of the parity test.
OUTPUT
Sample4 6 8 3 5 7
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.