CJCoding With Joseph
15free / daySign inCreate account

Array of Strings With Index

An array<string, 3> named days has been created with the values {"Mon", "Tue", "Wed"} and a loop over i from 0 to 2 is already written.

Inside the loop, print the index i, a colon, a space, and the day name at that index, then a newline.

Expected Output:

0: Mon
1: Tue
2: Wed

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
STL Containersstd::array
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.