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
Declare the C++ variable word with the value "code". Print the complete string, then print the characters at indices 0, 1, 2, and 3 separated by spaces, without using input or string member functions.
OUTPUT
Samplecode c o d e
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.