Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › STRING BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Start with "code" and independently insert 'X' at the first position, the last position, and position 3 using string::insert. Print the results in that order: "Xcode", "codeX", and "coXde".
OUTPUT
SampleXcode codeX coXde
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.