Smallbasic program
Answers
If you are using C++ or any other language higher than C, then the steps would be- 1. Declare the array 2. Analise the no. of inputs / the case to end loop in case of undefined entries.
int main() { string arr[ 100 ]; string input = "hello"; int count = 0; while( input != "exit" && count < 100 ) { cin>>input; arr[ count ] = input; count++; } }
There are other ways too!! Comment if you need any help!! :)