Can someone please explain the requirement. Especially points 2 and 3 -
Requirements:
1. Declare a string list variable and immediately initialize it.
2. The program should read 10 strings from the keyboard and add them to the list.
3. The program should add lines to the beginning of the list.
4. The program should display the list, each value on a new line.
Cannot understand the requirement
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
2 May 2019, 01:34
"Add 10 strings to it from the keyboard, but only add them to the beginning of the list, not the end."
Strings are not a single 'word', they are any amount of words, which also can be called 'lines'.
0
Ash Ka
2 May 2019, 20:14
Thanks for explaining this.
0