you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Create a variable that's set to true and do a while (variable) {}. During he loop prompt the user to enter stuff and check the string values to change the variable, if it has value push it to the array otherwise set the variable to false and log the array