Opening the reading…
Opening the reading…
PROGRAMMING FUNDAMENTALS › C++ FUNDAMENTALS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Traverse the C++ array `values` with a ranged for loop, double every element in place through a reference, and print the resulting sequence as `8 4 14 4 18` on one line.
OUTPUT
Sample8 4 14 4 18
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.